实验一 计算机和交换机基本设置
添加一个交换机,一个计算机,双击交换机,进入终端配置:
<Quidway>system
password:
[Quidway]sysname S3026
[S3026]super password
111
[S3026]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
[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
[S3026-vlan2]quit
[S3026]dis vlan
[S3026]int e0/3
[S3026-Ethernet1]port access vlan 2
[S3026-Ethernet1]quit
[S3026]dis 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