10-17-2012 03:33 AM - edited 03-07-2019 09:31 AM
Hi,
is it possible to run a Catalyst 4500 as pure Layer 2 Switch, i.e. disabling "ip routing", but still managing the switch via Fa1, i.e. the defautl mgmtVrf vrf ?
I tried the following:
!
no ip routing
!
interface FastEthernet1
ip vrf forwarding mgmtVrf
ip address 192.168.1.1 255.255.255.0
!
ip route vrf mgmtVrf 0.0.0.0 0.0.0.0 192.168.1.254
ip default-gateway 192.168.1.254
I was not able to reach the Switch even from the same subnet. Only after enabling ip routing I could manage the Switch. I haven't found any command to set ip default-gateway for a vrf. Any workaround to keep routing disabled, but still manageable via VRF?
Regards
10-17-2012 08:03 AM
if you want to run a VRF you must have IP routing enabled
please rate the post if helpful
10-17-2012 11:22 PM
yes but I don't need it for the "default" VRF!
10-18-2012 01:48 AM
a VRF is essentially a routing function, it allows you to have multiple instances of a routing table.
you cannot have a routing table if you do not have routing enabled
you can disable routing and still manage the switch using a VLAN SVI interface. what you have tried to do is enable a layer 3 interface but not have any layer 3 functions enabled.
you could use the follwoing config;
no ip routing
!
vlan 10
!
interface vlan 10
ip address 192.168.1.1 255.255.255.0
!
inteface FastEthernet1/1
no ip address
switchport
switchport access vlan 10
switchport mode access
!
you will then be able to manage the switch via VLAN 10 in the same way you would be able to manage any other Layer 2 switch without the need for a VRF
If you want or need to use a VRF then you will have to enable IP routing
Please rate post if helpful
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