Assigning an Ip address to a switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2015 09:21 PM - edited 03-07-2019 10:32 PM
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.
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2015 09:41 PM
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 *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2015 09:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2015 12:04 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2015 08:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2015 04:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2015 09:11 AM
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.
