01-02-2015 06:09 PM - edited 03-07-2019 10:04 PM
i have vlan separated by a switch my pc's can communicate on their own lans but not across the wan can anyone help me please
router 1
Router#show run
Building configuration...
Current configuration : 1004 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 10.0.0.2 255.255.255.252
encapsulation ppp
ppp authentication chap
clock rate 64000
!
interface Serial0/0/1
no ip address
clock rate 2000000
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 10.0.0.0 0.0.0.3 area 0
!
router rip
version 2
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
router 2
Router#show run
Building configuration...
Current configuration : 1000 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.1.104 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.2.104 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 10.0.0.1 255.255.255.252
encapsulation ppp
ppp authentication chap
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 10.0.0.0 0.0.0.3 area 0
!
router rip
version 2
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
01-05-2015 01:41 AM
-
01-05-2015 06:20 AM
There is a fundamental problem in the design of this network and to fix it the original poster will need to implement a different design. The problem is fundamentally that this is an attempt to have the same layer 2 vlan in two different places connected by a layer 3 connection. And that does not work.
Perhaps the simple way to illustrate the problem is to think of a PC connected to the vlan on router 1. Perhaps it has IP address of 192.168.1.50. And it wants to communicate with a PC connected to the vlan on router 2 and perhaps this PC has IP address of 192.168.1.150. For them to communicate PC 1 must ARP for PC 2. But the ARP is a broadcast packet and router 1 does not forward a broadcast from a vlan over the serial interface. So PC 2 never receives the ARP from PC 1 and they can not communicate.
The easy solution to this problem is to make the IP subnets different on each side of the serial connection. Perhaps Router 1 could have networks 192.168.1.0 and 192.168.2.0 while router 2 has networks 192.168.11.0 and 192.168.12.0.
If the original poster really needs the same vlan on both sides of the serial connection then he needs to implement a technology like l2tpv3 which does provide the ability to connect a layer 2 network accross a layer 3 connection. See this link for some information about this
http://en.wikipedia.org/wiki/L2TPv3
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide