how to add ip address to vlan

24 12 2007

connect to console

switch> enable
Password: [your privileged exec password]

switch#configure terminal
switch(conf)#interface vlan 10
switch(conf-if)#ip address 192.168.0.254 255.255.255.0
switch(conf-if)#ip default-gateway 192.168.1.1
switch(conf-if)#end
switch#

[optional] backup your old configuration
switch#copy startup-config startup-config.241207

save your running configuration (so that it will run on boot)
switch#copy running-config startup-config

About these ads

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.

%d bloggers like this: