02-27-2011 11:07 PM - edited 03-06-2019 03:47 PM
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,
Solved! Go to Solution.
03-07-2011 01:05 AM
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
02-27-2011 11:26 PM
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
03-06-2011 10:08 PM
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
03-07-2011 12:12 AM
Hi,
you can only create subinterfaces on Router interfaces not on switchinterfaces.
Rgds Martin
03-07-2011 01:05 AM
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
03-08-2011 07:35 PM
Thank you dear Mahesh, it was correct and works fine
Regards
03-07-2011 01:09 AM
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
03-07-2011 04:20 AM
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.
03-07-2011 09:55 AM
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 .
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