cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
733
Views
0
Helpful
6
Replies

Assigning an Ip address to a switch

nofori1382
Level 1
Level 1

I customer with a layer 2 switch. They are not running vlans. They have access-list running all over the switch. Now on the core switch they have this configuration.

access-list 100 permit ip any any

interface vlan 1

ip address 10.1.1.1 255.255.255.0

ip access-group 100 in

exit

 

Now the client is asked that I assigned an ip address 11.1.1.1 255.255.255.0 to one of the switches which is trunk to the core. The switch had ip address 12.1.1.1 previously

I issued a command:

interface vlan 1

ip address 11.1.1.1 255.255.255.0

no shut

exit

 

but when I ping the ip address 11.1.1.1 from any of the PC's I am unable to ping. Can anybody help me here.

 

 

6 Replies 6

Hi ,

 

Need little more details to answer your question .

 

what is your ip address of the PC ?

Is that PC also in vlan 1?

 

If your PC ip address is 11.1.1.X then you need to have L3 device to route the packet . Either L3 switch or router needed to route the packet between two vlans .

HTH
Regards,
VS.Suresh.
*Plz rate the usefull posts *

Cisco Freak
Level 4
Level 4

From which subnet are you trying to reach the switch IP add 11.1.1.1.

Do you that inter-vlan routing configured in your L3 device? Also, in the L2 switch did you configure the ip default-gateway?

CF

The problem is they are not running SVI on their core switch. They have the some of the interfaces configured with IP address but on the switch is configured ip address using vlan 1.

 

The question which other option apart from SVI can you run routing on a switch.

nofori1382
Level 1
Level 1

Guys, never mind I have found the solution to the problem.

 

Now on the core switch you have to run SVI for both subnet example:

Core Switch 

interface vlan 1

ip address 11.1.1.1 255.255.255.0

no shut

exit

 

interface vlan 2

ip address 10.1.1.1 255.255.255.0

no shut

exit

 

vlan 2

exit

 

vtp mode server

vtp password cisco

vtp domain cisco

 

ping 10.1.1.2

ping 11.1.1.2

 

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

 

Switch A

 

interface vlan 1

ip address 11.1.1.2 255.255.255.0

no shut

exit

 

interface vlan 2

ip address 10.1.1.2 255.255.255.0

no shut

exit

 

vtp mode client

vtp domain cisco

vtp password cisco

 

ping 11.1.1.1

ping 10.1.1.1

 

 

 

This is not the solution!

Whilst you may be able to communicate between the switches, you will not be able to from the hosts, as they are on a different network.

To achieve what you want you need to configure routing.

I assume you fully tested this, as prior to your change if the clients used the SVI on the core for routing, this will no longer work.

Also, you should not be using a public address.

Martin

Yes I did enable IP routing and just to give heads up. They are not running clans here but they want to give the switches different IP.

Review Cisco Networking for a $25 gift card