07-22-2017 07:17 AM - edited 03-08-2019 11:25 AM
Dears how i will assign ip on this switch
Suppose i have 2 vlans
Vlan 10 ip is 192.168.1.1/24
Vlan 20 ip is 10.0.0.1/24
I already configured in GUI mode but how i will configure in CMD line
please give me the command
07-22-2017 11:59 AM
Hello,
the standard command as depicted below should work:
Switch(config)# interface vlan 1
Switch(config-if)# ip address 192.168.1.1 255.255.255.0
This is straight from the CLI configuration guide (check pages 530 and 751):
http://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/CLI_Nikola300_1_3_7.pdf
07-22-2017 12:23 PM
sir i know that but how can i give ip address on vlan 10 and vlan 20
Vlan 10 ip is 192.168.1.1/24
Vlan 20 ip is 10.0.0.1/24
m not saying about vlan 1
07-22-2017 12:27 PM
Hello,
Vlan 1 was just an example, it works the same for any Vlan. Have you created the Vlans in your Vlan database ?
Switch(config)# vlan database
Switch(config-vlan)# vlan 10
07-22-2017 01:17 PM
Sir
I created Vlans
Switch(config)#vlan 10
Switch(config)# vlan 10
but when i try to give name also it will not take so how can i give the name also sir
07-22-2017 01:28 PM
Can you post the output of 'show vlan' ?
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