cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16255
Views
0
Helpful
9
Replies

How to configure VLAN in SSH?

ARUN02
Level 1
Level 1

Hello everyone

How to configure Management VALN in switch 2960, I want to configure remote access.

currently working vlan1 but  i want to configure VLAN100 with ip address and shutdown VLAN 1. 

-----------------------------------------------------------------------------------------------

current configuration:

interface Vlan1

ip address 172.22.60.6 255.255.255.0

!

 

!

line con 0

!

line vty 0 4

password *****

login

line vty 5 15

password *****

login

!

!

!

end

 

 

VLAN-TS#sh vlan

 

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20

Fa0/21, Fa0/22, Fa0/23, Fa0/24

Gig0/1, Gig0/2

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

 

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

 

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

 

Remote SPAN VLANs

------------------------------------------------------------------------------

 

Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

VLAN-TS#

9 Replies 9

johnd2310
Level 8
Level 8

Hi,

You will need to shutdown vlan 1 and create the new vlan. If you are connecting to another switch through trunk, t=you will need to add the new vlan to the trunk

 

interface vlan 1

 shutdown

 

vlan 100

  name Management

 

Interface vlan 100

 ip address x.x.x.x x.x.x.x

 

ip default-gateway x.x.x.x

 

Thanks

John

**Please rate posts you find helpful**

Hi, 

 

switch ip : 192.168.1.1 this vlan1 configured  I need to shutdown vlan 1 and create the new VLAN using remote only how to create. 

Interface IP-Address OK? Method Status Protocol

Vlan1 192.168.1.1  YES manual up up

 

 

mkazam001
Level 3
Level 3

you cannot shutdown vlan 1! so you should do the below:

interface vlan 1

 no ip address

interface vlan 100

 ip address x.x.x.x subnet-mask

 no shut

you can then assign port to vlan 100 -

switchport mode access

switchport access vlan 100

regards, mk

please rate if helpful or solved :)

Hi, 

currently working VLNA 1 i 'll configure to remote SHH. vlan1 ip address  removed then how to access that switch ?

 

 

 

Hi,

Are you trying to change the the management ip address remotely over an ssh session? what is the model and ios version of the switch(show version)?

Thanks

John

**Please rate posts you find helpful**

sw version 12.2
switch image: C2960SM-LANBASEK9-M

YES,

change to the management ip address remotely over an ssh session

switch version : 12.2 

must to do via console connection as you will lose connectivity as soon as you remove the IP address from Vlan 1 SVI

also, as its a LAN base license, you can only configure a single mgmt SVI

regards, mk

Hi,

Post the full output of "show version" command.

 

Thanks

John

**Please rate posts you find helpful**

Review Cisco Networking for a $25 gift card