Change an IP address without a reboot
Andrew Falanga
af300wsm at gmail.com
Fri Nov 3 14:51:26 UTC 2006
On 11/2/06, Vince Hoffman <jhary at unsane.co.uk> wrote:
>
> You have the order wrong
>
> root at crayfish
> (00:22:37 <~>) 0 # ifconfig xl0 inet6 2001:470:1f01:244::30
> root at crayfish
> (00:23:27 <~>) 0 # ifconfig xl0
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> options=9<RXCSUM,VLAN_MTU>
> inet6 fe80::211:d8ff:fe9f:531c%xl0 prefixlen 64 scopeid 0x1
> inet 10.0.0.100 netmask 0xffffff80 broadcast 10.0.0.127
> inet6 2001:470:1f01:244::30 prefixlen 64
> ether 00:11:d8:9f:53:1c
> media: Ethernet autoselect (100baseTX <full-duplex>)
> status: active
> root at crayfish
> (00:23:32 <~>) 0 # ifconfig xl0 inet6 2001:470:1f01:244::30 remove
> root at crayfish
> (00:23:34 <~>) 0 # ifconfig xl0
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> options=9<RXCSUM,VLAN_MTU>
> inet6 fe80::211:d8ff:fe9f:531c%xl0 prefixlen 64 scopeid 0x1
> inet 10.0.0.100 netmask 0xffffff80 broadcast 10.0.0.127
> ether 00:11:d8:9f:53:1c
> media: Ethernet autoselect (100baseTX <full-duplex>)
> status: active
>
>
Interesting! Thanks much for this. I tried and it works. Interesting that
for IPv4 this command works:
ifconfig <intf> delete <IP>
but for IPv6 one must do:
ifconfig <intf> inet6 <IP> remove
Thanks again.
Andy
More information about the freebsd-questions
mailing list