05-29-2008 07:50 PM - edited 03-05-2019 11:18 PM
Hi,
How to create a VLAN interface which contains an IP address that acts as a gateway for all the hosts for that VLAN.
Thanks and Regards
Solved! Go to Solution.
05-29-2008 09:39 PM
Hi,
This urls should give you some help...
http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008015f17a.shtml
SwitchLayer3(config)#interface Vlan2
SwitchLayer3(config-if)#ip address 10.1.2.1 255.255.255.0
SwitchLayer3(config-if)#no shutdown
SwitchLayer3(config)#interface Vlan3
SwitchLayer3(config-if)#ip address 10.1.3.1 255.255.255.0
SwitchLayer3(config-if)#no shutdown
.
.
.
Create management vlan interface on all your switches, let's say 200
SwitchLayer3(config)#interface Vlan200
SwitchLayer3(config-if)#ip address 10.1.200.1 255.255.255.0
SwitchLayer3(config-if)#no shutdown
Switchlayer2(config)#interface Vlan200
Switchlayer2(config-if)#ip address 10.1.200.2 255.255.255.0
Switchlayer2(config-if)#no shutdown
.
.
.
Default gateway of your layer 2 switches
ip default-gateway 10.1.200.1
05-29-2008 09:19 PM
what is the switch model you are trying to create ?
rgds/shiva
05-29-2008 09:39 PM
Hi,
This urls should give you some help...
http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008015f17a.shtml
SwitchLayer3(config)#interface Vlan2
SwitchLayer3(config-if)#ip address 10.1.2.1 255.255.255.0
SwitchLayer3(config-if)#no shutdown
SwitchLayer3(config)#interface Vlan3
SwitchLayer3(config-if)#ip address 10.1.3.1 255.255.255.0
SwitchLayer3(config-if)#no shutdown
.
.
.
Create management vlan interface on all your switches, let's say 200
SwitchLayer3(config)#interface Vlan200
SwitchLayer3(config-if)#ip address 10.1.200.1 255.255.255.0
SwitchLayer3(config-if)#no shutdown
Switchlayer2(config)#interface Vlan200
Switchlayer2(config-if)#ip address 10.1.200.2 255.255.255.0
Switchlayer2(config-if)#no shutdown
.
.
.
Default gateway of your layer 2 switches
ip default-gateway 10.1.200.1
05-29-2008 10:44 PM
Thank you, It worked.
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