11 12
发新话题
打印

[原创] 关于VLAN间互通问题,各位老大进来帮忙啊

关于VLAN间互通问题,各位老大进来帮忙啊

本文网址:http://bbs.bitscn.com/164244 复制

小弟买了个1802路由器,自带8个交换机口,可直接配置VLAN,我配置了两个DHCP地址池,动态给两个VLAN分配IP地址,分别为:vlan1 192.168.18.0 /24 vlan2 192.168.19.0 /24,每个vlan里电脑上网没问题,就是VLAN与VLAN之间无法PING通,请问如何做才能PING通啊?
interface FastEthernet0
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
!
interface FastEthernet1
!
interface FastEthernet2
switchport access vlan 2
!
interface FastEthernet3
!
interface FastEthernet4
!
interface FastEthernet5
!
interface FastEthernet6
!
interface FastEthernet7
!
interface FastEthernet8
vlan-id dot1q 2
exit-vlan-config
!
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
interface Vlan1
ip address 192.168.18.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface Vlan2
ip address 192.168.19.1 255.255.255.0
interface FastEthernet5
!
interface FastEthernet6
!
interface FastEthernet7
!
interface FastEthernet8
vlan-id dot1q 2
exit-vlan-config
!
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
interface FastEthernet5
!
interface FastEthernet6
!
interface FastEthernet7
!
interface FastEthernet8
vlan-id dot1q 2
exit-vlan-config
!
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
interface Vlan1
ip address 192.168.18.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface Vlan2
ip address 192.168.19.1 255.255.255.0

no ip http server
ip dns server
ip nat inside source list 1 interface Dialer1 overload
ip nat inside source list 10 interface Dialer1 overload
!
access-list 1 permit 192.168.18.0 0.0.0.255
access-list 10 permit 192.168.19.0 0.0.0.255
no cdp run
!
control-plane
!
!
line con 0
password zylovezy
login local
line aux 0
line vty 0 4
password zylovezy56578182
login
!
end

TOP

没用过这款路由器,用show ip route看下路由表正确与否,另外你发的这个怎么有重复的,看的头晕

TOP

是的,Router#
Router#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

     222.72.255.0/32 is subnetted, 1 subnets
C       222.72.255.210 is directly connected, Dialer1
     58.0.0.0/32 is subnetted, 1 subnets
C       58.37.147.121 is directly connected, Dialer1
C    192.168.19.0/24 is directly connected, Vlan2
C    192.168.18.0/24 is directly connected, Vlan1
S*   0.0.0.0/0 is directly connected, Dialer1
Router#

TOP

路由表没什么问题

就是这种集成交换机的路由器没玩过,要是三层交换机启用ip routing一般就可以互访了,要是路由器+二层交换机,那么设置一下单臂路由也就可以了,你这种没见过不知道要设置什么

TOP

可是奇怪了,vlan2里面有台打印机,在VLAN1里的电脑却可以PING通,但是PING不通VLAN2里其它电脑,

TOP

有点奇怪~

TOP

我发的配接口配置,请大家看看,是什么原因
interface FastEthernet0
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
!
interface FastEthernet1
!
interface FastEthernet2
switchport access vlan 2
!
interface FastEthernet3
!
interface FastEthernet4
!
interface FastEthernet5
--More--

TOP

命令打错了

TOP

哪里错了啊,说明白些啊,哥们

TOP

貌似你只是划分了vlan,如果vlan之间互放还需要做其他的设置吧
具体不是很清楚 - - 同样学习中

TOP

 11 12
发新话题
版块跳转 
沪ICP备08026629号 / 管理员木木 / QQ58284700 / MSNjacro|at|bitscn.net / TEL13641763379 /