#!Software Version V100R006C03 sysname Quidway# vlan batch 20 99 to 100# dhcp enable# undo http server enable#acl number 2000#ip pool 20 gateway-list 192.168.20.1 network 192.168.20.0 mask 255.255.255.0 dns-list 61.128.128.68#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password cipher %$%$I6.ASV)hJET,p"Dn.YM%3aXO%$%$ local-user admin service-type http#interface Vlanif1#interface Vlanif20 ip address 192.168.20.1 255.255.255.0 dhcp select global#interface Vlanif99 ip address 131.179.0.20 255.255.0.0#interface Vlanif100 ip address 192.168.1.254 255.255.255.0#interface Ethernet0/0/1 port link-type access port default vlan 20#interface Ethernet0/0/2 port link-type access port default vlan 20#interface Ethernet0/0/3 port link-type access port default vlan 20#interface Ethernet0/0/4 port link-type access port default vlan 20#interface Ethernet0/0/5 port link-type access port default vlan 20#interface Ethernet0/0/6 port link-type access port default vlan 20#interface Ethernet0/0/7 port link-type access port default vlan 20#interface Ethernet0/0/8 port link-type access port default vlan 20#interface Ethernet0/0/9 port link-type access port default vlan 20#interface Ethernet0/0/10 port link-type access port default vlan 20#interface Ethernet0/0/11 port link-type access port default vlan 20#interface Ethernet0/0/12 port link-type access port default vlan 20#interface Ethernet0/0/13 port link-type access port default vlan 20#interface Ethernet0/0/14 port link-type access port default vlan 20#interface Ethernet0/0/15 port link-type access port default vlan 20#interface Ethernet0/0/16 port link-type access port default vlan 20#interface Ethernet0/0/17 port link-type access port default vlan 20#interface Ethernet0/0/18 port link-type access port default vlan 20#interface Ethernet0/0/19 port link-type access port default vlan 20#interface Ethernet0/0/20 port link-type access port default vlan 20#interface Ethernet0/0/21 port link-type access port default vlan 20#interface Ethernet0/0/22 port link-type access port default vlan 20#interface Ethernet0/0/23 port link-type access port default vlan 99#interface Ethernet0/0/24 port link-type access port default vlan 100#interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2#interface GigabitEthernet0/0/3 port link-type access port default vlan 99#interface GigabitEthernet0/0/4 port link-type access port default vlan 100#interface NULL0# ip route-static 0.0.0.0 0.0.0.0 192.168.1.1#user-interface con 0 authentication-mode password set authentication password cipher %$%$P^2w(;pni%^d>STNCps*,[RImc+jN$x[Euser-interface vty 0 4接口说明:E0/0/1-E0/0/24口接电脑,G0/0/3接专线,G0/0/4接路由器。131.179.0.20 是专线IP,192.168.1.1 是路由IP问题:电脑能获得IP,能ping通192.168.20.1 192.168.1.254,但ping不通192.168.1.1 电脑不能上网,但交换机上能ping通192.168.20.1 192.168.1.25 192.168.1.1 131.179.0.254.请问,问题出在哪儿了?
|