cisco packet tracer pc0可以ping通pc1,但是pc1只能ping通主机0的ip地址 ,ping不通pc0的网关
主机0可以ping通主机1的ip地址和网关地址,主机1只能ping通主机0的ip地址ping不通网关,怎么能把网关也ping通呢。最上面两个路由器通的命令是什么二层交换机...
主机0可以ping通主机1的ip地址和网关地址,主机1只能ping通主机0的ip地址 ping不通网关,怎么能把网关也ping通呢。最上面两个路由器通的命令是什么
二层交换机0Switch>enable
Switch#conf t
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#interface f 0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface f 0/2
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/2, changed state to up
Switch(config-if)#exit
三层交换机0
Switch>enable
Switch#conf t
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#interface f 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console byconsole
Switch#conf t
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#int vlan 10
%LINK-5-CHANGED: Interface Vlan10, changedstate to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan10, changed state to upSwitch(config-if)#ip address 192.168.10.1255.255.255.0
Switch(config-if)#exit
Switch(config)#int vlan 20
%LINK-5-CHANGED: Interface Vlan20, changedstate to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan20, changed state to upSwitch(config-if)#ip address 192.168.20.1255.255.255.0
Switch(config-if)#exit 展开
二层交换机0Switch>enable
Switch#conf t
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#interface f 0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface f 0/2
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/2, changed state to up
Switch(config-if)#exit
三层交换机0
Switch>enable
Switch#conf t
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#interface f 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console byconsole
Switch#conf t
Enter configuration commands, one perline. End with CNTL/Z.
Switch(config)#int vlan 10
%LINK-5-CHANGED: Interface Vlan10, changedstate to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan10, changed state to upSwitch(config-if)#ip address 192.168.10.1255.255.255.0
Switch(config-if)#exit
Switch(config)#int vlan 20
%LINK-5-CHANGED: Interface Vlan20, changedstate to up
%LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan20, changed state to upSwitch(config-if)#ip address 192.168.20.1255.255.255.0
Switch(config-if)#exit 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询