标签:shu 交换 cap success src process rate outer pc2
一、实验拓扑:R1(config-if)#int f0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.10.254 255.255.255.0
R1(config-subif)#int f0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 192.168.20.254 255.255.255.0
2、R1 DHCP部署:
R1(config)#ip dhcp pool aa
R1(dhcp-config)#network 192.168.10.254 255.255.255.0
R1(dhcp-config)#default-router 192.168.10.0
R1(dhcp-config)#dns-server 8.8.8.8
R1(dhcp-config)#lease 365
R1(config)#ip dhcp pool bb
R1(dhcp-config)#network 192.168.20.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.20.254
R1(dhcp-config)#dns-server 8.8.8.8
R1(dhcp-config)#lease 365
SW1(config)#int range f0/1 - 2
SW1(config-if-range)#spanning-tree portfast
四、验证:
PC1#ping 192.168.20.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 28/38/44 ms
标签:shu 交换 cap success src process rate outer pc2
原文地址:http://blog.51cto.com/13856092/2137244