Ask Your Question
0

how to configure static ipv6 and additional ipv6 with same vlan?

asked 2013-10-02 00:20:48 -0600

joseph-shin gravatar image

Hi Linux Expert,

I'm having trouble with configuration static ipv6 address and additonal ipv6 on same interface(eth4).

1. static ipv6 configuraiton issue

firstly, I configure below

vi /etc/network/interface

auto eth4 iface eth4 inet6 static address 0.0.0.0 network 0.0.0.0

auto eth4.484 iface eth4.484 inet6 static address 2028:2123:1015:1015::aa11 netmask 2028:2123:1015:1015::/64 up route add -host 2027:2123:1015:1015::aa21 gw 2028:2123:1015:1015::aa10 dev eth4.484

auto eth4.484:1 iface eth4.484:1 inet6 static address 2028:2123:1015:1015::aa12 netmask 2028:2123:1015:1015::/64

and I hit the ifconfig -a eth4 Link encap:Ethernet HWaddr 00:0C:29:CF:E6:76
inet6 addr: fe80::20c:29ff:fecf:e676/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:54 errors:0 dropped:27 overruns:0 frame:0 TX packets:24 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4168 (4.0 KiB) TX bytes:2120 (2.0 KiB)

eth4.484 Link encap:Ethernet HWaddr 00:0C:29:CF:E6:76
inet6 addr: 2028:2123:1015:1015::aa12/0 Scope:Global inet6 addr: 2028:2123:1015:1015:20c:29ff:fecf:e676/64 Scope:Global inet6 addr: fe80::20c:29ff:fecf:e676/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2032 (1.9 KiB) TX bytes:1652 (1.6 KiB)

so, to use static ipv6 I added also like below but it doesn't work.

/etc/sysctl.conf

net.ipv6.conf.eth4.484.accept_ra=0

2. how to configure secondary static ipv6 in the same interface(eth4)

I want to add static ipv6 address (2028:2123:1015:1015::aa12) in the eth4 as well, but don't know how, because I need to use two source ip with same vlan for specific destination ip address.

any suggestion would be much appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-10-02 00:55:47 -0600

/etc/network/interface is not used on Fedora. Interface settings are stored in /etc/sysconfig/network-scripts

The syntax used there is very different from what you have posted. The directory is provided by the initscripts package (rpm -qf /etc/sysconfig/network-scripts)

Looking through the packaged documentation in /usr/share/doc/initscripts-* led me to instructions that should help you:

http://www.deepspace6.net/projects/initscripts-ipv6.html

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-02 00:20:48 -0600

Seen: 1,038 times

Last updated: Oct 02 '13