cancel
Showing results for 
Search instead for 
Did you mean: 

A2 series - Change from dhcp to static ip

A2 series - Change from dhcp to static ip

AntonS
Contributor II
Hy,
we want to change a2 switch from dhcp to static ip, but the switch won't let me:

TST2-A2-5(rw)->set ip address 10.142.14.5 mask 255.255.255.0 gateway 10.142.14.1 IP protocol must be none to set ip address.

Use'set ip protocol{none | bootp | dhcp}'to set Ip protocol to none.

TST2-A2-5(rw)->

If I set the ip protocol to none - the switch is not manageable any more, because the dhcp adress is lost immediatly.

I tried to load a config with static ip in it with configure configs/newconfig.cfg, but the switch don't takes the new ip. It takes the other config but not the ip adress!

There is no possibility to have a serial console access.

Best Regards

6 REPLIES 6

Careno__Ryan
Extreme Employee
Great, thanks for the feedback! Glad things worked out.

Regards,
Ryan Careno
ExtremeNetworks GTAC

AntonS
Contributor II
Hy Ryan,

thank you very much, it worked!

I didn't knew about the append command

TST2-A2-5(rw)->TST2-A2-5(rw)->copy tftp://10.241.2.3/configs/a2-ip-protocol-none.cfg configs/a2-ip-protocol-none.cfg
File transfer successful...

TST2-A2-5(rw)->copy tftp://10.241.2.3/configs/a2-ip-address.cfg configs/a2-ip-address.cfg
File transfer successful...

TST2-A2-5(rw)->
TST2-A2-5(rw)->
TST2-A2-5(rw)->configure configs/a2-ip-protocol-none.cfg append
>> set ip protocol none
>> configure configs/a2-ip-address.cfg append
>> set ip address 10.142.14.5 mask 255.255.255.0 gateway 10.142.14.1
TST2-A2-5(rw)->
TST2-A2-5(rw)->
TST2-A2-5(rw)->show config ip

#ip
set ip address 10.142.14.5 mask 255.255.255.0 gateway 10.142.14.1
!
end

TST2-A2-5(rw)->

Erik_Auerswald
Contributor II
I have seen "configure append" not work correctly (i.e. ignoring commands) before.

It usually works to save the config, copy it to a PC (e.g. via TFTP), edit it there, copy the edited config back to the switch, and then use "configure configs/edited_config" to reboot and apply the edited configuration.

This needs a switch reboot and should be tested in a lab environment first, of course.

Careno__Ryan
Extreme Employee
Hello Anton,

I have been doing some testing in the lab, and have found a work-around for you to do this remotely. Keep in mind if the syntax below is not exact, you will potentially not be able to get into the switch. The process involves copying two files to the switch:

Filename: change.cfg
set ip protocol none
configure configs/ipchange.cfg append

Filename: ipchange.cfg
set ip address 10.142.14.5 mask 255.255.255.0 gateway 10.142.14.1

Once both of these files with the above text in them are pushed to the switch via TFTP, you can then append the first file "change.cfg" with:

configure configs/change.cfg append

It would be good to test this in a switch you do have local console access to first if possible. It worked good in my lab setup on an A2 switch.

Regards,
Ryan Careno
ExtremeNetworks GTAC
GTM-P2G8KFN