04-05-2008 07:49 PM - edited 03-05-2019 10:13 PM
hi every body !
i have few questions regarding ip address assignment on cisco cat switch.
ip address on cisco switch can be configured in following ways:
switch(config)# ip address 192.192.192.192. 255.255.255.0
Switch(config) interface vlan 1
switch(config-vlan1) ip address 192.192.192.192 255.255.255.0
now my question is how does configuring ip address using these two methods affect switch ?
my second question is about vlans and ip address.
let say i have a cisco cat switch with two vlans.
switch(config) interface vlan 1
switch(config-vlan1) ip address 192.192.192.2 255.255.255.0
switch(config) interface vlan2
switch (config-vlan2)ip address 193.193.193.193 255.255.255.0
my question is when should we assign each vlans on the switch different ip?
Solved! Go to Solution.
04-05-2008 08:03 PM
I didn't know there was a config level option for ip address, I always assumed the "ip address" command had to be on an interface.
In your example of the two vlans, you are creating two layer 3 vlans by assigning an IP address to each vlan. In that example, vlan 1 will be able to route to vlan 2 (assuming you enable "ip routing").
04-05-2008 08:03 PM
I didn't know there was a config level option for ip address, I always assumed the "ip address" command had to be on an interface.
In your example of the two vlans, you are creating two layer 3 vlans by assigning an IP address to each vlan. In that example, vlan 1 will be able to route to vlan 2 (assuming you enable "ip routing").
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