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


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Assigning ipv6 to bonding interface - getting old as well as changed ipv6 in ifconfig output
# 1  
Old 04-18-2016
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 reference :
Code:
# cat /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
IPADDR=x.x.x.x
NETMASK=x.x.x.x
#GATEWAY=x.x.x.x
IPV6INIT=yes
IPV6ADDR=xxxx:xxxx:abcd:xxxx:xx:xx:xx:xxx
IPV6_DEFAULTGW=xxxx:xxxx:abcd:xxxx:xx:xx:xx:xxx
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
BONDING_OPTS="mode=4 miimon=100 xmit_hash_policy=1"
MTU=9000

where abcd is the correct and new ipv6 address which i should see in ifconfig command output , but post network restart and reload i can see below output where efgh which was old ipv6 address :

Code:
# ifconfig bond1
bond1     Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:xx.xx.xx.xxx  Bcast:xx.xx.xx.xxx  Mask:xxx.xxx.xxx.xxx
          inet6 addr: xxxx:xxx:abcd:xxx:xxxx:xxxx:xxxx:xxx/64 Scope:Global
          inet6 addr: xxxx::xxxx:xxxx:xxxx:xxxx/64 Scope:Link
          inet6 addr: xxxx:xxx:efgh:xxx:xx:xx:xx:xxx/64 Scope:Global
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:9000  Metric:1
          RX packets:9038660506 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12779501600 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:619072218642 (576.5 GiB)  TX bytes:15842973892775 (14.4 TiB)

please let me know what needs to be done in order to only reflect new 'abcd' ipv6 in ipconfig command output ?
# 2  
Old 04-18-2016
Quote:
Originally Posted by omkar.jadhav
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.
Code:
# ifconfig bond1
          inet6 addr: xxxx:xxx:abcd:xxx:xxxx:xxxx:xxxx:xxx/64 Scope:Global
          [...]
          inet6 addr: xxxx::xxxx:xxxx:xxxx:xxxx/64 Scope:Link
          inet6 addr: xxxx:xxx:efgh:xxx:xx:xx:xx:xxx/64 Scope:Global
[...]

You haven't said which system you use but from the output format i suppose it is some Linux-derivate.

It is common to configure network interfaces in via scripts/scriptlets in /etc/sysconfig/... but i suppose (part of) your configuration (the old part) is/was also duplicated in some other part of the system initialisation, probably in some rc-script somewhere in /etc/rc.d. Perhaps this didn't show p because the two competing configurations were effectively the same. Now that you have changed one of them they create two different configurations.

If this is the case you should simply remove that other configuration and rely on /etc/sysconfig and the procedures using it.

I hope this helps.

bakunin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Just can't turn off ipv6?

I'm running a Linux OS that uses Debian as it's base. A commercial vpn is installed that uses OpenVPN. For some reason, I can't get ipv6 to tunnel properly .... and Ipleak.net shows that my location is being unmasked by ipv6. I've tried kernel commands at boot, I've tried sysctl.conf commands.... (2 Replies)
Discussion started by: benc
2 Replies

2. Solaris

How to assign IPv4 and IPv6 addresses with same interface?

Hello dears how to assign IPv4 and IPv6 addresses with same interface on solaris 10 (1 Reply)
Discussion started by: ttashman
1 Replies

3. Solaris

Solaris 10 IPv6

Hello Dears , please I need your support I have Oracle Solaris 10 X86 server please if you can advise how can I add IP v6 on my server and if IPv6 was disabled how can i enable it also how can i add two IP (v4 and v6) on the same interface or I have to add another interface . Thanks in... (1 Reply)
Discussion started by: ttashman
1 Replies

4. IP Networking

Is bond0 ready and a bonding interface? - 4G Bonding Router Problems (RPI)

HI all, First post on the forum, and my first proper project on the Paspberry Pi, so sorry if this is in the wrong place. I am trying to turn my Pi in to a 3G/4G Bonding router. I have been researching and trying this for a week or so now. The basic plan is to have up to 6 ZTE MF823 USB... (0 Replies)
Discussion started by: elliottlc
0 Replies

5. IP Networking

IPv6 address block assign/associate with an interface

Hello all, I am trying to receive (tcp/udp/sctp) traffic from all IPs and, eventually, all ports of an IPv6 address block using as few sockets as possible short of implementing my own network stack. One possible solution was to associate an IP block to an interface then bind to that... (6 Replies)
Discussion started by: redwil
6 Replies

6. Linux

Help Me: How to set ARP stale time interval on linux platform for Ipv6 interface

Hi, Can any one please help me increase the arp stale time of an ipv6 interface on linux platform ? I have tried increasing the variable gc_stale_time but that doesnt work. Thanks (2 Replies)
Discussion started by: dkothapa
2 Replies

7. UNIX for Advanced & Expert Users

Assigning multiple IPV6 addresses with ISC dhcpd

Hi, Apologies if this is the wrong forum or this question has been answered already. I'm using the ISC dhcpd server on Centos 6.0, and can happily assign a single IPV6 address to a client with entries like this: subnet6 fd01:0:0:5::/64 { option dhcp6.name-servers fd01:0:0:5::226;... (0 Replies)
Discussion started by: jusme
0 Replies

8. Solaris

Solaris 19 10/09 ipv6 interface configuration

Hi, anyone has had experience in a static setting an IPv6 interface?, I'm trying accordance with the admin guide (ipv6 network configuration tasks), configure one interface in the server, actually i can do ping to my default gateway and access the Internet in IPv6, the specific point is however,... (3 Replies)
Discussion started by: pabloluja
3 Replies

9. SuSE

Linux and IPv6

Hi gurus, In a few month, we must enable IPv6 on our Linux Server! Should we reinstall the Linux machine to enable IPv6 or could we just make some change in configuration's files? Could Linux run simultaneous IPv4 and IPv6? Thanks in advance for our help our ideas? Best regards, nm (3 Replies)
Discussion started by: hiddenshadow
3 Replies
Login or Register to Ask a Question