May 25, 2013, 03:29:07 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome to Hurricane Electric's Tunnelbroker.net forums!
Home
Help
Search
Login
Register
Hurricane Electric's IPv6 Tunnel Broker Forums
>
General IPv6 Topics
>
IPv6 Basics & Questions & General Chatter
>
Question about deprecating an address on OSX or BSD
Pages: [
1
]
« previous
next »
Print
Author
Topic: Question about deprecating an address on OSX or BSD (Read 966 times)
guylhem
Newbie
Posts: 7
Question about deprecating an address on OSX or BSD
«
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
Re: Question about deprecating an address on OSX or BSD
«
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
Re: Question about deprecating an address on OSX or BSD
«
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
Re: Question about deprecating an address on OSX or BSD
«
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
Re: Question about deprecating an address on OSX or BSD
«
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
Re: Question about deprecating an address on OSX or BSD
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Tunnelbroker.net Specific Topics
-----------------------------
=> News & Updates
=> Questions & Answers
=> HE's Widgets & Gadgets
-----------------------------
IPv6 Certification Program Topics
-----------------------------
=> General Discussion
=> Suggest a Test!
-----------------------------
DNS.HE.NET Topics
-----------------------------
=> General Questions & Suggestions
-----------------------------
General IPv6 Topics
-----------------------------
=> IPv6 Basics & Questions & General Chatter
=> IPv6 on Linux & BSD & Mac
=> IPv6 on Windows
=> IPv6 on Routing Platforms
=> IPv6 Software Applications & Hardware Appliances
Loading...