Saturday, January 29, 2011

How to remove second ip address from vlan interface on switch

I am using ssh to remotely connect to a Dell PowerConnect switch (Dell uses the same commands as Cisco). I need to change the ip address of vlan 1 from 192.x.x.x to 10.x.x.x. I am able to add the new address of 10.x.x.x by:console(config-if)# ip address 10.x.x.x 255.x.x.x. Now vlan 1 will reply from both 10.x.x.x and 192.x.x.x

How do I then remove the existing 192.x.x.x from that interface?

  • It's been a while since I've worked on Cisco gear, so this may be incorrect, but give this a try:

    > no ip address 192.x.x.x 255.255.255.0
    
    Vatine : That looks correct to me and it's only been two days since I last removed an IP address from a Cisco device.
    pizzim13 : So, it appears not all the commands are the same. 'no ip address 192.x.x.x 255.255.255.0' returns "Wrong number of parameters or invalid range, size or characters entered." And 'no ip address 192.x.x.x' removes both ips
    ErikA : Then try `no ip address 192.x.x.x`.
    From ErikA

0 comments:

Post a Comment