高手帮我看看VLAN问题,为什么PC接VLAN1的口就能上网,接其他VLAN的口上不了网?

发布时间:2024-05-17 21:11 发布:上海旅游网

问题描述:

高手帮我看看VLAN问题,为什么PC接VLAN1的口就能上网,接其他VLAN的口上不了网?
两个H3C-3600 ,swicth1,swicth2。
swicth1为核心,其eth1/0/1 下接swicth2的eth1/0/24

配置如下

swicth1:
#
vlan 101
#
vlan 1001
#
interface Vlan-interface1
description ****XNQZF INSIDE GATE****
ip address 172.16.64.1 255.255.254.0
#
interface Vlan-interface101
ip address 172.16.250.122 255.255.255.252
#
interface Aux1/0/0
#
interface Ethernet1/0/1
port link-type trunk
port trunk permit vlan all
#
interface Ethernet1/0/2
port link-type trunk
port trunk permit vlan all

...

#
interface NULL0
#
interface LoopBack0
#
ospf 1
import-route static
area 0.0.0.2
network 172.16.64.0 0.0.1.255
network 172.16.250.120 0.0.0.3
#
arp static 172.16.250.121 000d-bc2b-713f
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000
#
ip route-static 0.0.0.0 0.0.0.0 172.16.250.121 preference 60

swicth2:
#
vlan 1 to 3
#
interface Vlan-interface1
ip address 172.16.64.14 255.255.254.0
#
interface Aux1/0/0
#
interface Ethernet1/0/1
#
interface Ethernet1/0/2
port access vlan 2
#
interface Ethernet1/0/3
port access vlan 2
#
interface Ethernet1/0/4
port access vlan 2
#
interface Ethernet1/0/5
port access vlan 2
#
interface Ethernet1/0/6
port access vlan 2
#
interface Ethernet1/0/7
port access vlan 3
#
interface Ethernet1/0/8
port access vlan 3
#
interface Ethernet1/0/9
port access vlan 3
#
interface Ethernet1/0/10
port access vlan 3
#
interface Ethernet1/0/11
port access vlan 3
#
interface Ethernet1/0/12
port access vlan 3
#
interface Ethernet1/0/13
#
interface Ethernet1/0/14
#
interface Ethernet1/0/15
#
interface Ethernet1/0/16
#
interface Ethernet1/0/17
#
interface Ethernet1/0/18
#
interface Ethernet1/0/19
#
interface Ethernet1/0/20
#
interface Ethernet1/0/21
#
interface Ethernet1/0/22
#
interface Ethernet1/0/23
#
interface Ethernet1/0/24
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/1/1
#
interface GigabitEthernet1/1/2
#
interface GigabitEthernet1/1/3
#
interface GigabitEthernet1/1/4
#
undo irf-fabric authentication-mode
#
interface NULL0
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000
#
ip route-static 0.0.0.0 0.0.0.0 172.16.64.1 preference 60
#
return

问题解答:

高手帮我看看VLAN问题,为什么PC接VLAN1的口就能上网,接其他VLAN的口上不了网?这个旅游问答期待您的解答,请登录账号或关注微信公众号回答这个问题。

热点新闻