cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2252
Views
0
Helpful
2
Replies

router & switch interlink connection

suthomas1
Level 6
Level 6

Hello,

 

We want to connect a router to a switch on layer 3 ip connection.
a /28 between them which will be used for management as well as for some access points.

 

Router port:-

int fa0/0
ip addr 10.58.0.1 255.255.255.240
des Link to layer 3 switch

 

Layer 3 switch configuration :-

int vlan 8
ip addr 10.58.0.2 255.255.255.240

 

int fa0/48
des Link to router
switchport mode trunk
switchport trunk native vlan 8

 

int fa0/21-25
des Access points
switchport mode access
switchport access vlan 8

 

ip route 0.0.0.0 0.0.0.0 10.58.0.1

 

Will the above configuration especially on the router fa0/0 port & switch work fine.

the switch will have the SVI for all vlans. 

 

Please help. thanks.

 

 

 

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

You config will work fine, but personally I would build some scalabilty into the config, and use sub-interfaces from day1.  If you need to tag for VLANs between the two devices in the future you will not incur any downtime.

 

!
int fa0/0
  desc link_to_layer3_switch
  no shut
!
int fa0/0.8
  encapsulation dot1q 8
  ip addr 10.58.0.1 255.255.255.240
!

 

 

 

!
int fa0/48
  desc link_to_router
  switchport trunk encapsulation dot1q
  switchport mode trunk
  switchport trunk allowed vlan 8
!

 

cheers,

Seb.

Jon Marshall
Hall of Fame
Hall of Fame

 

If the switch does all the routing then I would move the APs to their own vlan and just use a routed P2P link between the switch and router ie. instead of an SVI on the switch I would do - 

 

int fa0/48
no switchport
ip address 10.58.0.2 255.255.255.252

 

and then create a new vlan for APs. 

 

It makes for a cleaner setup ie. if you put the APs in the vlan shared between the switch and router what is the APs default gateway going to be and how does the traffic flow. 

 

Better, in my opinion, to have all default gateways on the switch and only use the router for remote destinations. 

 

Jon