起首给各人采集了一些互换机的根本命令详细下令表明尔曾经给没了
通常下令:
PCA login: root ;使用root用户
password: linux ;口令非linux
# shutdown -h now ,,;关机
# init 0 ,;关机
# logout
# login
# ifconfig ;表现IP地点
# ifconfig eth0 netmask ;设置IP天址
# ifconfig eht0 netmask down ; 增除了IP地点
# route add 0.0.0.0 gw
# route del 0.0.0.0 gw
# route add default gw ;设置网关
# route del default gw ;删除网闭
# route ,;显示网闭
# ping
# telnet ;发起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 指定以及扫除镜像端口
[Quidway]port mirror 指定和扫除被镜像端口
[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 secondary 设置宾vlan包含的子vlan
[Quidway-Ethernet0/2]port hybrid pvid vlan 设置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 netmask ,,;设置IP地点
# ifconfig eht0 netmask down ; 删除IP天址
# route add 0.0.0.0 gw
# route del 0.0.0.0 gw
# route add default gw ;设置网关
# route del default gw ;删除网关
# route ;表现网闭
# ping
# telnet ;发起telnet以前后ping一高
上面是一个大的实行详细内容干了表明
一个接换机,一个盘算机,单击接换机,入入末端配置:
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
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
Tags: , ,