13 12
发新话题
打印

计算机和交换机设置基础篇

计算机和交换机设置基础篇

关于交换机和路由器的配置在教大家的时候要是用硬件是不可能的 没哪个条件今天带给大家的是我做个一个小的实验 。
大家可以下一个华为MA5200G模拟器进行实验
具体的命令和解释我全写出来了希望和我一样菜的朋友和我一起做!
首先给大家收集了一些交换机的基本命令具体命令解释我已经给出了
通常命令:
PCA login: root                                     ;使用root用户
password: linux                                    ;口令是linux
# shutdown -h now                                   ;关机
# init 0                                            ;关机
# logout
# login
# ifconfig                                          ;显示IP地址
# ifconfig eth0 <ip address> netmask <netmask>      ;设置IP地址
# ifconfig eht0 <ip address> netmask <netmask> down ; 删除IP地址
# route add 0.0.0.0 gw <ip>
# route del 0.0.0.0 gw <ip>
# route add default gw <ip>                         ;设置网关
# route del default gw <ip>                         ;删除网关
# route                                             ;显示网关
# ping <ip>
# telnet <ip>                                       ;建议telnet之前先ping一下
---------------------------------------
交换机命令
~~~~~~~~~~
[Quidway]super password                                    修改特权用户密码
[Quidway]sysname                                    交换机命名
[Quidway]interface ethernet 0/1                            进入接口视图
[Quidway]interface vlan x                            进入接口视图
[Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0
[Quidway]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2  静态路由=网关[Quidway]user-interface vty 0 4
[S3026-ui-vty0-4]authentication-mode password
[S3026-ui-vty0-4]set authentication-mode password simple 222
[S3026-ui-vty0-4]user privilege level 3
[Quidway-Ethernet0/1]duplex {half|full|auto}        配置端口双工工作状态
[Quidway-Ethernet0/1]speed {10|100|auto}               配置端口工作速率
[Quidway-Ethernet0/1]flow-control                     配置端口流控
[Quidway-Ethernet0/1]mdi {across|auto|normal}       配置端口MDI/MDIX状态平接或扭接
[Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} 设置接口工作模式
[Quidway-Ethernet0/1]shutdown                    关闭/重起接口
[Quidway-Ethernet0/2]quit                            退出系统视图
[Quidway]vlan 3                                    创建/删除一个VLAN/进入VLAN模式
[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4    在当前VLAN增加/删除以太网接口
[Quidway-Ethernet0/2]port access vlan 3                    将当前接口加入到指定VLAN
[Quidway-Ethernet0/2]port trunk permit vlan {ID|All}      设trunk允许的VLAN
[Quidway-Ethernet0/2]port trunk pvid vlan 3            设置trunk端口的PVID
[Quidway]monitor-port <interface_type interface_num>        指定和清除镜像端口
[Quidway]port mirror <interface_type interface_num>       指定和清除被镜像端口
[Quidway]port mirror int_list observing-port int_type int_num 指定镜像和被镜像
[Quidway]description string                         指定VLAN描述字符
[Quidway]description                           删除VLAN描述字符
[Quidway]display vlan [vlan_id]                     查看VLAN设置
[Quidway]stp {enable|disable}                       开启/关闭生成树,默认关闭
[Quidway]stp priority 4096                          设置交换机的优先级
[Quidway]stp root {primary|secondary}               设置交换机为根或根的备份
[Quidway-Ethernet0/1]stp cost 200                   设置交换机端口的花费
[SwitchA-vlanx]isolate-user-vlan enable             设置主vlan
[SwitchA]Isolate-user-vlan <x> secondary <list>     设置主vlan包括的子vlan
[Quidway-Ethernet0/2]port hybrid pvid vlan <id>     设置vlan的pvid
[Quidway-Ethernet0/2]port hybrid pvid               删除vlan的pvid
[Quidway-Ethernet0/2]port hybrid vlan vlan_id_list untagged 设置无标识的vlan  
如果包的vlan id与PVId一致,则去掉vlan信息. 默认PVID=1。
所以设置PVID为所属vlan id, 设置可以互通的vlan为untagged.
计算机的命令:
计算机命令
~~~~~~~~~~
PCA login: root                                     ;使用root用户
password: linux                                    ;口令是linux
# shutdown -h now                                   ;关机
# init 0                                            ;关机
# logout
# login
# ifconfig                                          ;显示IP地址
# ifconfig eth0 <ip address> netmask <netmask>      ;设置IP地址
# ifconfig eht0 <ip address> netmask <netmask> down ; 删除IP地址
# route add 0.0.0.0 gw <ip>
# route del 0.0.0.0 gw <ip>
# route add default gw <ip>                         ;设置网关
# route del default gw <ip>                         ;删除网关
# route                                             ;显示网关
# ping <ip>
# telnet <ip>                                       ;建议telnet之前先ping一下

下面是一个小的实验具体内容做了解释
一个交换机,一个计算机,双击交换机,进入终端配置:

<Quidway>system
password:
[Quidway]sysname S3026        ;交换机命名
[S3026]super password 111     ;设置特权密码
[S3026]user-interface vty 0 4  /*进入虚拟终端接口配置模式*/
[S3026-ui-vty0-4]authentication-mode password   
/*这里我使用的是aaa的认证模式,可选用none
也就是不认证,和passowrd 密码认证这三种,推荐选择aaa 和 password */
/*set auth pass cipher xxxxx 如果你选择的是password认证方式,则要设置一个密码*/
/*user privilege level 3  设置telnet登录级别为3级,
*/ /*这两步只要选用password时需要使用*/
local-aaa-server
/*进行本地3a服务器视图*/
[S3026-ui-vty0-4]set authentication-mode password simple 222
[S3026-ui-vty0-4]user privilege level 3
[S3026-ui-vty0-4]quit
[S3026]quit
<S3026>sys
password:111
[S3026]display currect-config /*显示当前配置*/
[S3026]dis curr  /*显示当前配置*/
[S3026]vlan 2
[S3026-vlan2]port ethernet0/2  
[S3026-vlan2]port e0/4 to et0/6  在当前VLAN增加/删除以太网接口
[S3026-vlan2]quit
[S3026]dis vlan
[S3026]int e0/3
[S3026-Ethernet1]port access vlan 2    将当前接口加入到指定VLAN
[S3026-Ethernet1]quit
[S3026]dis vlan  查看VLAN设置
[S3026]dis curr  
[S3026]interface vlan 1   
[S3026-Vlan-interface1]ip address 10.65.1.8 255.255.0.0
[S3026-Vlan-interface1]quit
[S3026]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2
[S3026]ip default-gateway 10.65.1.2
[S3026]dis curr
[S3026]save
双击小电脑:
login:root
password:linux
[root@PCA root]#ifconfig eth0 10.65.1.1 netmask 255.255.0.0
[root@PCA root]#ifconfig
[root@PCA root]#route add default gw 10.65.1.2
[root@PCA root]#route
[root@PCA root]#ping 10.65.1.8
[root@PCA root]#telnet 10.65.1.8

TOP

副乳

副乳就是多余的乳房,一般发生在腋前区或腋下,也可见于胸壁、腹部等,副乳有三种情况:
  (1)有乳腺组织无乳头。
  (2)有乳头无乳腺组织。
  (3)有乳头又有乳腺组织。凡是有腺体组织的副乳,同正常乳房一样受性激素的影响,呈周期性变化,经前期胀痛,还可发生与正常乳腺相同的常见疾病,如增生、囊肿、副乳腺癌等。
  副乳是女性常见的一种乳房发育畸形.它常为发育不全的组织,多数像婴儿的乳房,或者只见一点皮肤色素加深,中央可有一点点皮肤增厚,类似小小的乳头.有的仅有乳腺,有的仅有乳头,但也有在腋部可见完整的乳体(乳头.乳晕,腺体),且较大.月经前副乳也发胀疼痛,妊时明显增大,有乳头着在哺乳期间甚至还分泌出乳汁来
发生
  人类乳腺来源于外胚层。在胚胎发育至第2个月时,于胚胎的腹面从腋下到腹股沟的“乳线”上,有6~8 对乳腺始基形成。正常情况下,胚胎发育至第9周时,除胸前区位于第5肋间的一对乳腺始基能保留并继续发育外,其余的均退化、消失。如果其余的乳腺始基中某一对(或几对)未消失,就会在出生后发育成多余的乳房或乳头,这就是附乳(多乳或多乳头)。
临床
  副乳对人体一般没有什么影响,但可能会给你产生心理上的不安和生活上的不便,大约0.1%的人可发生乳腺癌.由于副乳的位置不同于正常乳房,有时容易忽视.因此当副乳增大,生活不便有肿快疑是肿瘤时,要去就医副乳切除.

TOP

华恒公司024-88324850咖啡机

TOP

金镇抗疲劳手链厂家15058580503

四大名著之武大郎留洋记!  话说当年,潘金莲与金镇抗疲劳手链那可恶的第三者西门庆搞上后,武大郎对自己的金镇抗疲劳手链厂家婚姻生活,彻底感到失败,无奈自己斗不过西门庆,加上自身条件又不好,三级残废,再婚也成了问题,万分居丧,在忧郁中,见身边的人留洋回来,个个都金光金镇抗疲劳手链真假灿灿,自己也萌发了镀金的念头。经多方面咨询后,武大郎了解到,去金镇抗疲劳手链效果美洲的印第安那护照不好办(当时好像还没有美离间鸟国),加上自己辛苦卖烧饼挣的可怜人的一点点银子也被潘金莲带走了,连买机票的银子都不够,决定偷渡东洋。来到东洋后,武大郎的第一印象是:Kao,比桑尼亚还桑尼亚,简直是一个未开化的鸟国。当时东洋的蛮荒,也为武大郎带来了金镇抗疲劳手链价格无限商机,短短一年内就开了五百家“武大郎烧饼专卖连锁店”,名气远超索尼、东芝、麦当劳。

TOP

努力

读小学四年级的弟弟胖得实在不像话,大家常常取笑他。

    一天,老师要他们一班同学开始在联络簿上记下「每天帮家里做的事」,弟弟怎麽也想不出来,最後只好由妈妈代为填写。她在联络簿上写了:「每天帮家里吃饭。」老师的评语是:「看得出来,你很努力!」














  雷蒙磨  球磨机价格  球磨机生产厂家 高细度粉碎机 超细磨机

TOP

自转

一个连队的士兵正在进行训练,指挥官对士兵们说:“你们都躺下,把腿举起 来,像蹬自行车一样运动。” 几分钟后,一个士兵突然停止了运动。指挥官问他:“你为什么停下来?” 士兵回答:“自行车在自动地转呢。”












  雷蒙磨  第三代制砂机  高压雷蒙磨 鄂式破碎机厂 粗碎鄂式破碎机

TOP

TOP

命运是有楼主的决定的,绝对服从啦

你发布的消息的太令人振奋拉,你才是最可的人


以速度慢 逐渐被淘汰 -效率低






想我们的敬爱想-我们的敬爱的敬礼!

上海大众搬场-全国十佳杰出搬场服务单位
装潢公司-上海室内设计最大的装潢公司  
大众搬场-大众搬场公司是成立较早的上海搬家公司之一
抽动症-儿童健康网提供免费咨询治疗小儿抽动症

TOP

沈阳华恒脱皮机024-31401808土豆去皮机.红薯脱皮机.

华恒公司024-88324850专销土豆红薯脱皮机;网址www.cy139.com本机适用于土豆地瓜去皮,脱皮,红薯,木薯,山芋及类似蔬菜本机适用于土豆地瓜去皮,脱皮,红薯,木薯,山芋及类似蔬菜的脱皮及清洗干净,脱净率极高、破损率低、干净卫生、效率极高。省却大量人力和时间! 先将土豆地瓜等蔬菜置于水中2~5分钟后,取出投入机器筒内按动开关,间断给水,待0.2-1分钟开闸即可.
脱皮机
土豆去皮机
红薯脱皮机








免费服务电话

E—MAIL:88324639@163.com

公司网站:www.cy139.com   电话024-88324639 024-88324850  024-31401808
   
业务咨询QQ:337808621  273037046 415160829

TOP

frequency of fighting, again

frequency of fighting, again, does not mean that they Since then, the two do not fight, but because of the uncertainty of property rights caused by the frequency of fighting, such as the definition of property rights has been greatly decreased, and later we found not only his personal experience to prove this point, but also can be modern and Modern China The data support, I would like to brief you on the study Professor Yu Jianrong, a lot of colleagues here are very familiar with, for me, in the middle of several particularly interesting set of data, I know that Professor Yu will be a while, According to his data collected in a central electronic media audience on the voice of the three agricultural problems, with 68% of the land-related disputes. The second set of data, to Beijing to petition the farmers in the survey, 73% of all land in the village because they lead to the issue of property rights disputes. Other data also similar, in 2004 from 130 in the first half of the rural mass incidents, with 67% of land property rights is also relevant to farmers and police clashed. The data shows that property rights do not clear land for social disputes, social order and posed a great threat to the system from the point of view, just like my two daughters, if able to carry out land reform, rural social norms for China's social order and political and social order, can be helpful is one thing.




]—————————————————————————————
Dofus Kamas
Dofus Kamas
world of warcraft gold
buy warhammer online gold
warhammer online gold

TOP

 13 12
发新话题