Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

VLAN Interface

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
Community Member

Re: VLAN Interface

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

3 REPLIES
Community Member

Re: VLAN Interface

what is the switch model you are trying to create ?

rgds/shiva

Community Member

Re: VLAN Interface

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

Community Member

Re: VLAN Interface

Thank you, It worked.

120
Views
0
Helpful
3
Replies
CreatePlease to create content