cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2050
Views
0
Helpful
8
Replies

OSPF configuration

rouzbehta
Level 1
Level 1

Hello all,

I am so confused on a network configuration, I attached a pdf file which shows a network I am going to build.

If some one can help me and give me the configuration I really appreciate it.

Best Regards,

1 Accepted Solution

Accepted Solutions

Hi,

Sorry for this but no problema there is a way.

First you need to check whether your switch support ospf or not  if yes you can try below config to give IP address

on vlan interface

----------:Router:--------------

Router#
interface FastEthernet6/0.101
encapsulation dot1Q 101
ip address 189.189.189.1 255.255.255.252
no snmp trap link-status
end


---------: Switch :-------------

vlan 101

name TEST1

interface Vlan101
ip address 189.189.189.2 255.255.255.252
no shut

end

interface GigabitEthernet1/0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 101
switchport mode trunk
end

same way you can configure other end of switch.

Regards

Mahesh

View solution in original post

8 Replies 8

Mahesh Gohil
Level 7
Level 7

Hello,

Please find config as per the instruction given in diagram

==========================================

RTR2

int fa0/0
no ip address
no shut

int fa0/0.10
encapsulation dot1q 10
ip address 10.10.10.1 255.255.255.128
no shut

router ospf 1

router-id 2.2.2.2
network 10.10.10.0 0.0.0.127 area 0
network 2.2.2.2 0.0.0.0 area 0
network 172.31.0.0 0.0.255.255 area 0

RTR1

int fa0/0
no ip address
no shut

int fa0/0.11
encapsulation dot1q 11
ip address 10.10.10.129 255.255.255.128
no shut

router ospf 1

router-id 1.1.1.1
network 10.10.10.128 0.0.0.127 area 0
network 1.1.1.1 0.0.0.0 area 0
network 192.168.0.0 0.0.255.255 area 0

Switch:

int fa0/1.10
encapsulation dot1q 10
ip address 10.10.10.2 255.255.255.128

int fa0/2.11
encapsulation dot1q 11
ip address 10.10.10.130 255.255.255.128

router ospf 1
network 10.10.10.0 0.0.0.127 area 0
network 10.10.10.128 0.0.0.127 area 0

============================

Please let me know if you face any problem with above config

Regards

Mahesh

Dear Mahesh,

In the switch I can't define encapsulation dot1q 10 on the suninterface fa0/1.10, switch doesn't have this ability, is it because IOS issue or the switch problem?

Regards

Hi,

you can only create subinterfaces on Router interfaces not on switchinterfaces.

Rgds Martin

Hi,

Sorry for this but no problema there is a way.

First you need to check whether your switch support ospf or not  if yes you can try below config to give IP address

on vlan interface

----------:Router:--------------

Router#
interface FastEthernet6/0.101
encapsulation dot1Q 101
ip address 189.189.189.1 255.255.255.252
no snmp trap link-status
end


---------: Switch :-------------

vlan 101

name TEST1

interface Vlan101
ip address 189.189.189.2 255.255.255.252
no shut

end

interface GigabitEthernet1/0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 101
switchport mode trunk
end

same way you can configure other end of switch.

Regards

Mahesh

Thank you dear Mahesh, it was correct and works fine

Regards

Jigar Dave
Level 3
Level 3

Hello rouzbehta,

please clarify the switch you are using is Layer 2 or layer 3?
in layer 3 switch we can assign IP address but in layer 2 switch we can't.
That will help

Best regards,
Jigar Dave

Hi,

as it is asked for an ospf peering with the switch it must be a L3 switch.

I decided to use routed ports but you could have used SVIs instead for VLAN10 and VLAN11.

On each router f1 interface must be connected to a switch trunk link.

I attached the config that I think should do what you want.

Regards.

Alain.

Don't forget to rate helpful posts.

  On a normal switch you cannot use subinterfaces to trunk .  You need to setup layer 3 svi's  and then setup trunking on the link .