在思科模拟器Cisco Packet Tracer下出现这个:
DistributeSwitch1#ip default-gateway 192.168.0.254
^
% Invalid input detected at '^' marker.
启动完全后
分布层show ip route
Gateway of last resort is 192.168.0.254 to network 0.0.0.0
C 192.168.0.0/24 is directly connected, Vlan1
C 192.168.1.0/24 is directly connected, Vlan10
C 192.168.2.0/24 is directly connected, Vlan20
C 192.168.3.0/24 is directly connected, Vlan30
C 192.168.4.0/24 is directly connected, Vlan40
C 192.168.5.0/24 is directly connected, Vlan50
C 192.168.6.0/24 is directly connected, Vlan60
C 192.168.7.0/24 is directly connected, Vlan70
C 192.168.8.0/24 is directly connected, Vlan80
C 192.168.10.0/24 is directly connected, Vlan100
S* 0.0.0.0/0 [1/0] via 192.168.0.254
核心层show ip route
Gateway of last resort is 192.168.0.254 to network 0.0.0.0
C 192.168.0.0/24 is directly connected, Vlan1
S* 0.0.0.0/0 [1/0] via 192.168.0.254