Hurricane Electric's IPv6 Tunnel Broker Forums
May 25, 2013, 03:29:07 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Hurricane Electric's Tunnelbroker.net forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Question about deprecating an address on OSX or BSD  (Read 966 times)
guylhem
Newbie
*
Posts: 7


View Profile
« on: July 20, 2011, 11:00:11 am »

Hello

I would like to know what is the equivalent on OSX or BSD of the following linux command :

ip -6 addr change 2001::something/64 dev tap0 preferred_lft 0

The idea is to make the address still valid for receiving packets, but not valid for sending them.

I tried to do some googling but I found nothing for OSX or BSD

Thanks
Guylhem
Logged
juhoostman
Newbie
*
Posts: 11


View Profile
« Reply #1 on: July 22, 2011, 08:14:58 am »

Try this: ifconfig DEV inet6 ADDR deprecated

This is not tested at all, since I have no access to an OS X, instead it is quickly derived from the source. You may also have a different version of ifconfig.
Logged
guylhem
Newbie
*
Posts: 7


View Profile
« Reply #2 on: July 22, 2011, 08:52:52 am »

Hello

Thanks - but with this syntax I get:

ifconfig: unable to get address cache: Operation not supported on socket

If I remove "addr" it works, but the address is not deprecated.

Guylhem
Logged
jrocha
Network Engineer, Hurricane Electric
Administrator
Jr. Member
*****
Posts: 66



View Profile WWW
« Reply #3 on: July 22, 2011, 12:03:17 pm »

Replace DEV with your device name and ADDR with the address you wish to depreciate, like so:

sudo ifconfig en0 inet6 2001:470::a9:1889:a6e7:ee07:1687 deprecated
Logged
juhoostman
Newbie
*
Posts: 11


View Profile
« Reply #4 on: July 26, 2011, 05:32:28 am »

If this doesn't work, there may be other means to do what you want. You can create a pseudo-interface and assign the addresses you don't want to be used by default to it instead of the real outgoing interface. You should assign only single addresses to the pseudo-interface, not subnets. If the addresses have subnets, add explicit routes to them through their real interfaces.
Logged
juhoostman
Newbie
*
Posts: 11


View Profile
« Reply #5 on: July 26, 2011, 06:17:53 am »

You can also use ip6addrctl if it is available. First run ip6addrctl to see the current policy table, then add a new rule:
Code:
ip6addrctl add <prefix to be "deprecated"> 1 <label that is not yet used, maybe greater than 10>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!