10-23-2018 10:27 PM - edited 03-08-2019 04:27 PM
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.
10-24-2018 12:00 AM
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.
10-24-2018 12:20 AM - edited 10-24-2018 12:23 AM
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
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