cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
314
Views
0
Helpful
1
Replies

ip address assignment on cisco cat switch

sarahr202
Level 5
Level 5

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?

1 Accepted Solution

Accepted Solutions

Jason Fraioli
Level 3
Level 3

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").

View solution in original post

1 Reply 1

Jason Fraioli
Level 3
Level 3

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").

Review Cisco Networking products for a $25 gift card