LinuxQuestions.org
Help answer threads with 0 replies.
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-22-2017, 09:11 AM   #1
bfedyk
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
Configure IPv6 statically


Hi, I am a fairly newbie to Linux, so I was not sure whether to post this question in this or the Newbie forum. Decided on networking as this is networking related.

I am currently running an application on a specific release of Ubuntu Server - 12.04.2 (lsb_release -a shows 'Prercise'). The hardware server has 2 x on-board dual-port NICs.

The interfaces are configured with IPv4. I need to configure IPv6 addressing on one port only, the application will be extended to support IPv4 and IPv6.

I have sussed out how to manually add an IPv6 address to the interface. If I use ifconfig, or just ip commands I can list the interface and see the IPv6 I have added to it (of course the IPv6 is a global scope IP).

However I try to add this to the /etc/network/interfaces file, but on restart the interface is not configured with the IPv6 address, just with the IPv4 as usual. My search on the net brings up information and I know I add the IPv6 manually correctly, and it seems I have edited the interfaces correctly, but still I do not get the IPv6 auto configured on the interface.

For what it is worth:

- IPv6 address (just an example) 2a03:dd00:801:f803::101
- Interface on which this is required (example): eth2


So for example, in my interfaces file I have the following stanza for device eth2 (I have used dummy IPs for illustration purposes:

auto eth2
iface eth2 inet static
address 1.1.1.1
netmask 255.255.255.255
network 111.111.111.0
gateway 111.111.111.1
iface eth2 inet6 static
address 2a03:dd00:801:f803::101
netmask 64


As I say on restart, e.g. server reboot, my eth2 only show its IPv4 address, no IPv6. I can add the IPv6 manually again.

Am I missing something? Have I done something wrong?

IPv6 traffic works on the interface, once configured manually, so I know IPv6 is working.

Many thanks but apologies in advance if, as a newbie to networking in Linux, I have omitted something (not understood something).

Bohdan
 
Old 03-22-2017, 02:43 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Wonder if it needs a gateway also? Shouldn't but maybe.

"gateway 2607:f0d0:2001:000a:0000:0000:0000:0001"


https://www.cyberciti.biz/faq/ubuntu...configuration/

Guess it would also assume up to date system and maybe a nic driver that supports ipv6.
 
Old 03-24-2017, 06:16 PM   #3
bfedyk
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
This is resolved. Not entirely sure how, but I had to make other changes to the 'interfaces' file - this had three interfaces defined, but all three had a GW defined, each interface being on a different subnet.

To solve that problem I left my default route on my interface eth0, then added 'up route add ...' lines to the stanzas for interfaces eth1 and eth2, adding specific routes. When I restarted the services, I solved my default route issue but also my IPv6 address is configured on the interface, as expected - incidentally the IPv6 address was configured in interface eth2.

So, the issue is resolved, seems to have resolved itself.
 
  


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
how to configure zones files for ipv6 in CentOS SarahGurung Linux - Server 5 02-15-2013 11:25 AM
How To Configure Pure IPv6 Environment kerroppa Linux - Networking 3 06-07-2007 12:58 PM
Easy-to-configure IPv4/IPv6 firewall tlemons Linux - Security 1 05-25-2007 09:28 AM
configure qmail to be ipv6 enable clueless_user Linux - Newbie 6 09-10-2004 07:30 AM
configure ipv6 vera Linux - Networking 0 06-07-2004 08:57 AM

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

All times are GMT -5. The time now is 12:22 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