Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing an IPv6 Address on an interface.

Status
Not open for further replies.

surfbum99

Technical User
May 8, 2006
81
GB
Hi,

I'm trying to change an IPv6 Address on an interface eri0:

Here is the current config :

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.4.222 netmask ffffff00 broadcast 192.168.4.255
ether 0:3:ba:1f:bb:91
lo0: flags=2000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6> mtu 8252 index 1
inet6 ::1/128
eri0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
ether 0:3:ba:1f:bb:91
inet6 fe80::203:baff:fe1f:bb91/10

When I do the following:

ifconfig eri0 inet down

ifconfig eri0 inet6 unplumb

ifconfig eri0 inet6 plumb inet6 2001:558:FF10:405::1/64 up

I get :

ifconfig: inet6: bad address

Can anyone tell me what is wrong with this address?

If also tried something like:

ifconfig eri0 inet6 plumb inet6 2001:0558:FF10:0808:0203:BAFF:FE67:3A9D/64 up
ifconfig: inet6: bad address


Regards,

Alistair.
 
Me again,

Even if I try with a new logical network interface it doesn't work:

bash-3.2# ifconfig eri0:1 plumb inet6 2001:558:ff10:800:203:baff:fe73:a73f/64 up
ifconfig: inet6: bad address
 
Try this syntax perhaps:

[tt]ifconfig eri0:1 inet6 2001:558:ff10:800:203:baff:fe73:a73f/64 plumb up[/tt]

Annihilannic.
 
Many thanks

ifconfig eri0:1 inet6 2001:558:ff10:800:203:baff:fe73:a73f/64 plumb up

this works a treat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top