How to delete some ipv6 routes?


 
Thread Tools Search this Thread
Special Forums IP Networking How to delete some ipv6 routes?
# 1  
Old 08-21-2007
How to delete some ipv6 routes?

Hi,

How can i delete the following routes on my OpenBSD 4.1 system?

Code:
# route -n show (including only relevant ipv6-routes)

Code:
Internet6: 
Destination        Gateway       Flags        Refs      Use         Mtu         Interface

::/104             ::1           UGRS         1         0           -           lo0
2002::/24          ::1           UGRS         0         0           -           lo0
2002:7f00::/24     ::1           UGRS         0         0           -           lo0
fe80::%sk0/64      link#2        UC           0         0           -           sk0
fe80::%lo0/64      fe80::1%lo0   U            0         0           -           lo0
ff01::%lo0/32      ::1           UC           0         0           -           lo0

It is the rest of the routing values that i didn't manage to remove after reading "man 8 route" so, will you please help me? :-)

Thank you,
James
# 2  
Old 08-22-2007
Solved

I solved it. Here are some example solutions;

To remove ::/104 you type;
Code:
route delete -inet6 :: -prefixlen 104

To remove fe80::%sk0/64 you type:
Code:
route delete -inet6 fe80::%sk0 -prefixlen 24

To remove ff01::%lo0/32 you type:
Code:
route delete -inet6 ff01::%lo0 -prefixlen 32

Without any concern for the gateway. Yay. Smilie

Hope this will help someone.
This User Gave Thanks to phalcos For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Assigning ipv6 to bonding interface - getting old as well as changed ipv6 in ifconfig output

Hi, I have created a bonding bond1 interface with 6 Eth , mode=4. Recently i have changed my old ipv6 to new one and tried to restart as well as reload network service. Post which i can see old as well as changed ipv6 in ifconfig command output. Below are few files and command output for your... (1 Reply)
Discussion started by: omkar.jadhav
1 Replies

2. Solaris

Problem with routes in Solaris 10

Hello All, I have a Solaris 10 machine with 4 physical network interfaces configured viz. igb0, e1000g0, igb2 and e1000g2. Out of these interfaces, I am routing all my normal monitoring and O&M activities via. igb0 and e1000g0 interfaces. However, I am facing an issue on one of the... (4 Replies)
Discussion started by: mystition
4 Replies

3. UNIX for Dummies Questions & Answers

Routes being automatically added

Hello, I have two AIX 5.3 servers that are supposedly set up exactly the same. The problem I am having is on one of the servers, it seems dynamic routes are being added mysteriously and non-periodically. This only happens on one server and not the other. Also, there doesn't seem to be a specific... (1 Reply)
Discussion started by: Conutmonky
1 Replies

4. AIX

Static Routes question

I added a static route through smit using: Communications applications and Services ==> TCIP/IP ==> Further Configuration ==> Static Routes ==> Add a Static Route ==> Route Type of host Filled in Destination Address, Default Gateway Address and Network Interface of en0. This... (2 Replies)
Discussion started by: jyoung
2 Replies

5. Solaris

adding routes in Solaris

Solaris Guru's What is the proper way to add routes in the routing table so after a node reboot the routes will not be lost. I understand the /etc/defaultrouter for the default router and the <route add> command but using this command routes will be removed once the node reboots. Thanks (7 Replies)
Discussion started by: Brad_52000
7 Replies

6. Solaris

Where are routes stored ?

Hi there When adding a route (or indeed deleting a route) which file is amended ? I am moving a box from one network to another and when it starts up it tries to connect run 'add net 192.x.x.x' etc etc ...but i dont want it to do that where do I edit these route additions cheers (5 Replies)
Discussion started by: hcclnoodles
5 Replies

7. AIX

Multiple Default routes

Hi All, I have a AIX server running v5.2 and its having multiple default routes configured to two seperate gateway. Here's the output of -- netstat -rn Routing tables Destination Gateway Flags Refs Use If PMTU Exp Groups Route Tree for Protocol Family 2... (2 Replies)
Discussion started by: rramanuj
2 Replies

8. Debian

Setting Routes and such

Ok, I made changes to my routing tables..... which file do I modify to make the routes initialize correctly when the machine boots up? I work with all flavours of Unix/Linux... but this is an older box... Linux, Release 2.2.14-5.0. I did a grep for the default route in /etc, but didnt find... (2 Replies)
Discussion started by: djsal
2 Replies

9. IP Networking

Multiple Interfaces and Routes

I have a Unix box with 2 network interfaces on the same IP subnet and would like to add a host route via a specific interface. Any assistance would be greatly appreciated. (3 Replies)
Discussion started by: diemos
3 Replies
Login or Register to Ask a Question