cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
941
Views
0
Helpful
5
Replies

how to connect vlan on the other side

abdulrahmanm18
Level 1
Level 1

the problem is pc0 cant comunicate to pc 1

im using ospf on both routers

both pc on same vlan and subnet what should i do?

i feel i have to use diffrent ip for the remote pc?

5 Replies 5

saif musa
Level 4
Level 4

abdulrahman,

hope you doing well...

If you could upload both routers runnig configuration it will be easier for us to detect the stoppage

Regards


Current configuration : 988 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.100
encapsulation dot1Q 100
ip address 10.1.1.1 255.255.255.0
!
interface FastEthernet0/0.200
encapsulation dot1Q 200
ip address 11.1.1.1 255.255.255.0
!
interface Serial0/0
ip address 15.1.1.1 255.255.255.0
!
interface Serial0/1
no ip address
clock rate 2000000
shutdown
!
interface Serial0/2
no ip address
clock rate 2000000
shutdown
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 15.0.0.0 0.255.255.255 area 0
network 10.0.0.0 0.255.255.255 area 0
network 192.168.0.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
end

------------------------------------------------------------------------------------------------------------------------------------------

Current configuration : 1088 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R2

!

!

!

!

!

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

ip address 192.168.1.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/0.100

encapsulation dot1Q 100

ip address 10.1.1.50 255.255.255.0

!

interface FastEthernet0/0.200

encapsulation dot1Q 200

ip address 11.1.1.50 255.255.255.0

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0

ip address 15.1.1.2 255.255.255.0

clock rate 2000000

!

interface Serial0/1

no ip address

clock rate 2000000

shutdown

!

interface Serial0/2

no ip address

clock rate 2000000

shutdown

!

router ospf 1

router-id 1.1.1.1

log-adjacency-changes

network 15.0.0.0 0.255.255.255 area 0

network 10.0.0.0 0.255.255.255 area 0

network 192.168.1.0 0.0.0.255 area 0

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

end

Hi abdul,

your configuration looks incorrect, you have an ip configured to the physical interface fa0/0 on both the routers as well as you have the sub interfaces configured..remove the physical interface ip's and just configure the sub-interfaces with the ip address on both the routers.. have the sub-interfaces configured with 2 different network segments on both the routers and the the switch end interfaces which are connected to the router as "switchport mode trunk".. once done then have the pc's allocated to the respective network segments which are part of that sub-interface ip's ...

Ensure that all the networks are advertised over ospf and verify the ospf neighbor ship between router and also check the ospf routing table ..

Try to ping the hosts which are in different lan segments which should be successful.

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hello,

You need to use different subnet for sucessfull routing exchange other wise both the routers are sending same 10.1.1.0/24 on ospf to both, so there woudl be confusion in network.

Change the subnet of PC1 to 10.2.2.0/24 and then check the connectivty.

Hope it Helps..

-GI

Rate if it Helps..

what about the vlan becouse they are on same vlan

vlan-100