Re: Change an IP address without a reboot
On 11/2/06, Vince Hoffman [EMAIL PROTECTED] wrote: You have the order wrong [EMAIL PROTECTED] (00:22:37 ~) 0 # ifconfig xl0 inet6 2001:470:1f01:244::30 [EMAIL PROTECTED] (00:23:27 ~) 0 # ifconfig xl0 xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=9RXCSUM,VLAN_MTU inet6 fe80::211:d8ff:fe9f:531c%xl0 prefixlen 64 scopeid 0x1 inet 10.0.0.100 netmask 0xff80 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 [EMAIL PROTECTED] (00:23:32 ~) 0 # ifconfig xl0 inet6 2001:470:1f01:244::30 remove [EMAIL PROTECTED] (00:23:34 ~) 0 # ifconfig xl0 xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=9RXCSUM,VLAN_MTU inet6 fe80::211:d8ff:fe9f:531c%xl0 prefixlen 64 scopeid 0x1 inet 10.0.0.100 netmask 0xff80 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Change an IP address without a reboot
How can I eliminate the first address? I've looked over the ifconfig manual page several times, each time reading it just a little bit more carefully, but I haven't found anything that answers this question. Would some kind person please help me out and show me what it is that's eluding me from making this happen? Maybe this will help. I don't use IPv6, but it should be similar. Here is an ifconfig of my box. I added the second address just to show the results: mybox# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 208.70.104.3 netmask 0xff80 broadcast 208.70.104.127 inet 192.168.250.1 netmask 0xff00 broadcast 192.168.250.255 ...now, mybox# ifconfig rl0 delete 192.168.250.1 ...and finally, newmarlo# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 208.70.104.3 netmask 0xff80 broadcast 208.70.104.127 HTH, Regards, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Change an IP address without a reboot
Andrew Falanga wrote: When it boots, I log in and configure an IPv6 address like this: ifconfig sis0 inet6 fec0:1:1:1::3/64 Which works just great. It so happens in this little isolated network I'm building, this address was taken, so then I did the exact same command as above only I gave it the address of fec0:1:1:1::2/64. The part that I want to know how to eliminate is, after issuing the second command, I listed the interface configuration using ifconfig and both the addresses were present. How can I eliminate the first address? I've looked over the ifconfig manual page several times, each time reading it just a little bit more carefully, but I haven't found anything that answers this question. Would some kind person please help me out and show me what it is that's eluding me from making this happen? from man ifconfig -alias Remove the network address specified. This would be used if you incorrectly specified an alias, or it was no longer needed. If you have incorrectly set an NS address having the side effect of specifying the host portion, removing all NS addresses will allow you to respecify the host portion. it also says you can use delete or remove (not really an rtfm cause i know how it is when you know you've read something carefully but still managed not to see what your looking for ;) Vince Thanks, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Change an IP address without a reboot
On 11/2/06, Steve Bertrand [EMAIL PROTECTED] wrote: mybox# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 208.70.104.3 netmask 0xff80 broadcast 208.70.104.127 inet 192.168.250.1 netmask 0xff00 broadcast 192.168.250.255 ...now, mybox# ifconfig rl0 delete 192.168.250.1 ...and finally, newmarlo# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 208.70.104.3 netmask 0xff80 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 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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Change an IP address without a reboot
Andrew Falanga wrote: On 11/2/06, Steve Bertrand [EMAIL PROTECTED] wrote: mybox# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 208.70.104.3 netmask 0xff80 broadcast 208.70.104.127 inet 192.168.250.1 netmask 0xff00 broadcast 192.168.250.255 ...now, mybox# ifconfig rl0 delete 192.168.250.1 ...and finally, newmarlo# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 208.70.104.3 netmask 0xff80 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 [EMAIL PROTECTED] (00:22:37 ~) 0 # ifconfig xl0 inet6 2001:470:1f01:244::30 [EMAIL PROTECTED] (00:23:27 ~) 0 # ifconfig xl0 xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=9RXCSUM,VLAN_MTU inet6 fe80::211:d8ff:fe9f:531c%xl0 prefixlen 64 scopeid 0x1 inet 10.0.0.100 netmask 0xff80 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 [EMAIL PROTECTED] (00:23:32 ~) 0 # ifconfig xl0 inet6 2001:470:1f01:244::30 remove [EMAIL PROTECTED] (00:23:34 ~) 0 # ifconfig xl0 xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=9RXCSUM,VLAN_MTU inet6 fe80::211:d8ff:fe9f:531c%xl0 prefixlen 64 scopeid 0x1 inet 10.0.0.100 netmask 0xff80 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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]