cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
347
Views
0
Helpful
3
Replies

VLAN Interface

jaweed123
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

muca
Level 3
Level 3

Hi,

This urls should give you some help...

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008015f17a.shtml

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml#maintask1

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

View solution in original post

3 Replies 3

shiva_ial
Level 1
Level 1

what is the switch model you are trying to create ?

rgds/shiva

muca
Level 3
Level 3

Hi,

This urls should give you some help...

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008015f17a.shtml

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml#maintask1

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

Thank you, It worked.

Review Cisco Networking products for a $25 gift card