12-20-2022 07:23 AM
12-20-2022 07:26 AM
first you must convert it to L3 port by
no switchport
then you can assign IP to port.
12-20-2022 07:43 AM
Thank you very much
12-20-2022 07:44 AM
You are so so welcome
12-20-2022 07:33 AM
Hello,
here is an example:
3850#conf t
3850(config)#ip routing
3850(config)#interface gigabitethernet 1/0/1
3850(config-if)#no switchport
3850(config-if)#ip address 192.168.1.1 255.255.255.0
12-20-2022 07:43 AM
Thank you very much Sr
12-20-2022 08:09 AM
Now, How can I tell the router to route that IP back and forth to the switch?
12-22-2022 02:38 PM
I am not clear what your topology is so I will assume that it is simple, perhaps the 3850 connects to some router on one of its ports. There are several options for how that connection could work. One option would be to make the 3850 port a layer 3 (using the no switchport command) interface. Configure an IP address on the 3850 and a corresponding IP address on the router. Enable ip routing on 3850 as suggested by @Georg Pauwen and configure a default route on 3850 with the router as the next hop. Configure vlans on 3850 and a vlan interface for each vlan. The vlan interfaces will be the default gateway for devices connected in the vlans. On the router configure static routes for the subnets used on 3850 or configure a dynamic routing protocol to run between the 3850 and the router.
The other alternative is to not configure ip routing on 3850. In this case you would configure vlans but not vlan interfaces on 3850. The port connecting to the router would be configured as a trunk carrying all of the vlans. The router would configure subinterfaces, each subinterface with an appropriate IP address for the vlan it is processing for. The devices connected to vlans on 3850 would have default gateway that is the router address for that subnet.
12-23-2022 08:51 AM
If routing is enabled on the switch, which I recall is the default for a 3850, the 3850 will route between active L3 interfaces (i.e. SVIs or routed ports, with IPs).
For the 3850 to route to networks it is not directly connected to, you need to use static route statements and/or use a dynamic routing protocol (e.g. RIP, OSPF, EIGRP).
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