1.點選路由器 -
1.2config-Gigab...0/0,點選Port Status 後面的On
然後將下面的IP改為192.168.20.254
Subnet改為255.255.255.0
1.2,點選Gig...0/1 ip:192.168.1.1 su:255.255.255.0
1.3,點選Static-Network:192.168.20.0
Mask:255.255.255.0
Next Hop:192.168.1.254
然後點Add
將Network改為192.168.30.3
再點一次Add,點×
42點第二個交換機
2.1config-FastEthernet0/3,將Access改為Trunk
2.3點CLI
輸入命令en->conf t->vlan 30->vlan 20 ->exit
->int f0/1->switchport access vlan 20->exit
->int f0/2->switchport access vlasn 30->exit
然後點×
3,點第三個交換機
跟上面2的步驟一樣
4.點右上的那個交換機
4.1config->Network:192.168.10.0
Mask:255.255.255.0
Next Hop:192.168.1.1
點Add,
4.2然後點CLI輸入命令
exit->conf t ->ip routing->int f0/1->no switchport
按config->FastEthrnet0/1->IP Address:192.168.1.254
Subnet :255.255.255.0
4.3點CLI輸入命令
exit->vlan 20->vlan 30->exit->int f0/2->switchport access vlan 20->exit->int f0/3->switchport access vlan 30->exit
->int vlan 20->ip address 192.168.20.254 255.255.255.0->exit
->int vlan 30 ->ip assress 192.168.30.254 255.255.255.0再點×
5.點第三臺電腦
5.1點Desktop再點第三個輸入命令
ping 192.168.10.1 顯示out
ping 192.168.1.1 顯示out
ping 192.168.1.254 能ping通,然後×掉
6.點最後一個電腦
ping 192.168.1.1 能ping通
ping 192.168.10.1 能ping通 ,然後×
7,點路由器
config->Gig..0/0將ip中的20改為10,然後×
8,點第三臺電腦 ping 192.168.10.1
9.第四臺電腦 ping 192.168.10.1
10.第一臺電腦 ping 192.168.30.2
ping 192.168.20.1