LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2014, 09:49 AM   #1
darkmode
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Rep: Reputation: Disabled
IPv4 and IPv6 Dual Stack issue with routes in /etc/network/interfaces


Hi there,

Im configuring dual-stack on a Debian machine and as soon as I uncomment "post-up and "pre-down" lines in the configuration file I get the following error:

RTNETLINK answers: File exists
Failed to bring up eth1.

This is how my configuration file looks, as soon as I comment out the "post-up" and "pre-down" lines then my eth1 gets the IPv6 address. If I comment out the inet6 interface then my configure works perfectly adding the routes to the appropriate network.

auto eth1
iface eth1 inet static
address 172.12.0.1
netmask 255.255.255.0
post-up ip route add 172.16.0.0/24 via 172.12.0.50
pre-down ip route add 172.16.0.0/24 via 172.12.0.50

iface eth1 inet6 static
address 2001:23::207:129
netmask 112

Please advise as I need these routes to be added on startup.

Thanks
Darkmode
 
Old 03-12-2014, 06:18 AM   #2
darkmode
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Needed to add pre-up modprobe ipv6 into my /etc/network/interfaces file, I assume this is because I am currently using an old disto.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Me (only ipv6) trying to use my servers dual stack capability jostillmanns Linux - Networking 2 09-15-2013 07:41 AM
Dual Stack IPv4/IPv6 on Ubuntu 10.04? jimbo1954 Linux - Networking 3 09-20-2010 05:27 AM
How to enable duel ipv4/ipv6 stack on Linux bostan Linux - Networking 1 03-13-2010 07:30 PM
LXer: Linux Apache Dual Stacked IPv4 and IPv6 Configuration LXer Syndicated Linux News 0 08-29-2009 04:50 PM
IPV4/IPV6 Dual Stack Usage spotmax777 Linux - Networking 1 07-17-2007 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration