当前位置:首页 > 华为的路由器模拟器及实验内容全解
Please change the terminal's speed to 38400bps.
And select XMODEM
protocol. Press ENTER key when ready.
Downloading ...CC (please select [File]->[Send])
Download completed. Write flash auccessfully!
实验七 直联路由
system password:
[Quidway]interface ethernet0
[Quidway-Ethernet0]ip addr 10.65.1.2 255.255.255.0
[Quidway-Ethernet0]undo shutdown
[Quidway-Ethernet0]int e1
[Quidway-Ethernet1]ip addr 10.66.1.2 255.255.255.0
[Quidway-Ethernet1]undo shutdown
[root@PCA root]#ifconfig eth0 10.65.1.1 netmask 255.255.0.0 [root@PCB root]#ifconfig eth0 10.66.1.1 netmask 255.255.0.0
[root@PCA root]#ping 10.65.1.2 通
[root@PCA root]#ping 10.66.1.2 不通,没设网关
[root@PCA root]#route add default gw 10.65.1.2
[root@PCA root]#ping 10.66.1.2 通
去掉Host B与Router的连线,再ping:
[root@PCA root]#ping 10.66.1.2 不通(没有接线端口会自动down掉)
再连接Host B与Router的连线,再ping: [root@PCA root]#ping 10.66.1.2 通了
实验八 单臂路由
设PCA:10.65.1.1 PCB:10.66.1.1
1.一个接口两个IP的情况
system password:
[Quidway]interface ethernet0
[Quidway-Ethernet0]ip addr 10.65.1.2 255.255.255.0 [Quidway-Ethernet1]ip addr 10.66.1.2 255.255.255.0 secondary
[Quidway-Ethernet1]undo shutdown
[root@PCA root]#ping 10.66.1.1 通
2.划分两个子接口,对两个vlan的路由
[SwitchA]vlan 2 [SwitchA-vlan2]port e0/3
[SwitchA]vlan 3 [SwitchA-vlan3]port e0/6
[SwitchA]ine e0/1
[SwitchA-Ethernet0/1]port link-type trunk [SwitchA-Ethernet0/1]port trunk permit vlan all [SwitchA-Ethernet0/1]port trunk encap dot1q
[SwitchA]dis curr
[Quidway]int e0 [SwitchA-Ethernet0]int e0.1
[SwitchA-Ethernet0.1]encapsulation dot1q 2 [SwitchA-Ethernet0.1]ip addr 10.65.1.2 255.255.255.0
[SwitchA-Ethernet0.1]nudo shut [SwitchA-Ethernet0.1]int e0.2
[SwitchA-Ethernet0.2]encapsulation dot1q 2 [SwitchA-Ethernet0.2]ip addr 10.66.1.2 255.255.255.0
[SwitchA-Ethernet0.2]nudo shut
[SwitchA]dis curr
[root@PCA root]#ping 10.66.1.1 通
实验九 静态路由实验
PCA:10.65.1.1 PCB:10.66.1.1 PCC:10.68.1.1 PCD:10.69.1.1
[RouterA]interface ethernet0
[RouterA-Ethernet0]ip addrress 10.65.1.2 255.255.0.0
[RouterA-Ethernet0]undo shutdown
[RouterA-Ethernet0]int e1
[RouterA-Ethernet1]ip addrress 10.66.1.2 255.255.0.0
[RouterA-Ethernet1]undo shutdown
[RouterA-Ethernet1]int s1
[RouterA-Serial1]ip addrress 10.67.1.2 255.255.0.0
[RouterA-Serial1]undo shutdown [RouterA-Serial1]clock rate 64000
[RouterA-Serial1]quit [RouterA]ip routing [RouterA]dis curr
[RouterB]interface ethernet0
[RouterB-Ethernet0]ip addrress 10.68.1.2 255.255.0.0
[RouterB-Ethernet0]undo shutdown
[RouterB-Ethernet0]int e1
[RouterB-Ethernet1]ip addrress 10.69.1.2 255.255.0.0
[RouterB-Ethernet1]undo shutdown
[RouterB-Ethernet1]int s0
[RouterB-Serial0]ip addrress 10.67.1.1 255.255.0.0
[RouterB-Serial0]undo shutdown
共分享92篇相关文档