Change an IP address without a reboot
Vince Hoffman
jhary at unsane.co.uk
Fri Nov 3 00:24:45 UTC 2006
Andrew Falanga wrote:
> On 11/2/06, Steve Bertrand <iaccounts at ibctech.ca> wrote:
>>
>> mybox# ifconfig
>> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>> options=8<VLAN_MTU>
>> inet 208.70.104.3 netmask 0xffffff80 broadcast 208.70.104.127
>> inet 192.168.250.1 netmask 0xffffff00 broadcast 192.168.250.255
>>
>> ...now,
>>
>> mybox# ifconfig rl0 delete 192.168.250.1
>>
>> ...and finally,
>>
>> newmarlo# ifconfig
>> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>> options=8<VLAN_MTU>
>> inet 208.70.104.3 netmask 0xffffff80 broadcast 208.70.104.127
>>
>
> This seems to work for IPv4 address as I tried the above. I added the
> address and then deleted it. However, when I attempt to delete the IPv6
> address I've given to the interface, I continually get "bad value." For
> example,
>
> ifconfig sis0 inet6 fec0:1:1:1::2/64
>
> ifconfig sis0 delete fec0:1:1:1::2
>
> Which returns:
>
> ifconfig: fec0:1:1:1::2: Bad value
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
>
> I've even tried expressing all 8 "blocks" of the IPv6 address. Could
> this
> be a defect in how ifconfig handles IPv6 addresses? If so, whom do I
> contact to look into it?
>
> Andy
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list