VLAN bond issue

Issues related to configuring your network
narayanab16
Posts: 80
Joined: 2012/03/13 10:56:21

VLAN bond issue

Post by narayanab16 » 2013/07/22 05:42:41

Hi,

IF CENTOS FORUM COULD ABLE TO HELP ME ON THIS ASPECT, THATS REALLY APPRECIATED ? EVEN I HAVE RAISED WITH ORACLE FORUM


vlan module: 8021q used

ref link; http://docs.oracle.com/cd/E18476_01/doc.220/e18478/commproc.htm#BEIHAIDA --- here they used multiple physical hosts not single ethernet port
Here
in bracket oracle details and other is my details

1) eth0 (1A-ETH-3) - ethernet port
2) vlan121 (eth4, vlan 10 ) - vlan 121
3) vlan122 (eth5, vlan 11 ) - vlan 122

I have a exalogic machine which has [b]Oracle Linux 5.6- x64 bit[/b]

Created 2 VLANs with IP and bond interface if i start network service [service network restart],

[b]i get hardware address conflicts error message on vlan 121, 122[/b]

i have 1 physical lan cord, creating eth0, multiple vlans, bond1, bond0 interfaces

[b]i could see eth0 192.168.1.12, bond1 192.168.48.128 but vlan121, vlan122 no static ips displayed[/b]

Question : How can i build vlan121, vlan122 ip address should set as static ips (or) based on hardware address

when i run #ifconfig -a ==> default HwAddr displays common for all the vlans, bond1, eth0


# vim /etc/sysconfig/network-scripts/ifcfg-vlan121

DEVICE=vlan121

BOOTPROTO=none

ONBOOT=yes

IPADDR=192.168.48.129

#HWADDR=a2:c0:a0:a8:01:01

VLAN=yes

PHYSDEV=eth0

VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD


MASTER=bond1

SLAVE=yes


# vim /etc/sysconfig/network-scripts/ifcfg-vlan122

DEVICE=vlan122

BOOTPROTO=none

ONBOOT=yes

IPADDR=192.168.48.130

#HWADDR=a2:c0:a0:a8:01:01

VLAN=yes

PHYSDEV=eth0

VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD


MASTER=bond1

SLAVE=yes


# vim /etc/sysconfig/network-scripts/ifcfg-bond1

DEVICE=bond1

IPADDR=192.168.48.128

NETMASK=255.255.255.0

BOOTPROTO=none

USERCTL=no

TYPE=Ethernet

ONBOOT=yes

IPV6INIT=no

BONDING_OPTS="mode=active-backup miimon=100 downdelay=5000 updelay=5000"

GATEWAY=192.168.48.1

narayanab16
Posts: 80
Joined: 2012/03/13 10:56:21

Re: VLAN bond issue

Post by narayanab16 » 2013/07/22 18:04:01

how to resolve this issue???

real error on # service network restart
kernel ==> 2.6.32-200.21.1.el5uek, oracle linux 5.6

Shutting down interface >: bonding: bond1: Warning: the permanent HWaddr
of >- 00:14:5E:xx:1C:xx - is still in use by bond1. Set the HWaddr of >
to a different address to avoid conflicts.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

VLAN bond issue

Post by gerald_clark » 2013/07/22 18:10:37

Ask Oracle.

tigalch
QA Team
Posts: 522
Joined: 2012/06/23 17:28:41
Location: Austria

Re: VLAN bond issue

Post by tigalch » 2013/07/22 18:41:10

I'm not shure what you are trying to achive with bonding on a single link, IMHO you need two physical links to create a bonding interface. Also the guide you provide in your post seems to be about using infiniband?

[quote]
1) eth0 (1A-ETH-3) - ethernet port
2) vlan121 (eth4, vlan 10 ) - vlan 121
3) vlan122 (eth5, vlan 11 ) - vlan 122
[/quote]
That's why there are two NICs in your above sample, not only two VLAN-IFs. If you remove the bonding IF I think the VLAN-setup is looking good.

On an unrelated note I would update to 5.9, which should also be the most current point release of oracle linux.

narayanab16
Posts: 80
Joined: 2012/03/13 10:56:21

Re: VLAN bond issue

Post by narayanab16 » 2013/07/22 18:57:18

let me clarify to you.

I have a 2 virtual machines
I need to create multiple vlans on this machine[based on eth0]
I will use this vlans(has VNICs) for bonding interface to make things instead going to the separate lan ports which is not needed.

2 virtual machines make vlan connections and exchange info between them

vm1 vm2

Each VM contains many subnets.....so i cant go for many lan cords physically :(

bonding interface used to act as master slave on the vlans....

if really helpful if somebody who has simulated this situation,...i try to catch them if i get thru this channel..for help

tigalch
QA Team
Posts: 522
Joined: 2012/06/23 17:28:41
Location: Austria

Re: VLAN bond issue

Post by tigalch » 2013/07/22 19:26:53

Do I get you right:
You have two VMs - one is connected to VLAN 121, one to VLAN122.
you have another machine which has a physical link which provides both VLANs to that same machine.
Also judging from your network setup all machines seem to be in the same subnet incl. the bonding-IF (192.168.48.0/24).

I might be missing something in your setup, but aside from the bonding issue, is it really a good idea to have the same subnet used in two different VLANs and then trying to connect them?
This somehow sounds like bridging to me.

narayanab16
Posts: 80
Joined: 2012/03/13 10:56:21

Re: VLAN bond issue

Post by narayanab16 » 2013/07/23 03:44:22

Hi Thanks for your help


Can able to assign hardware address(dummy mac) to each vlan only for bonding interface? is there anyway
I have Oracle Virtual Box

i need this if somebody can suggest is this possible if yes,,,pls let me know how do i achieve this

1) Exalogic vm1 - here i have eth0, bond0, [bonding bond1 & (vlan121, vlan122)], ilom(vlan120)
1) Exalogic vm2 - here i have eth0, bond0, [bonding bond1 & (vlan131, vlan132)], ilom(vlan130)

the realistic ip subnets

i need bonding relationship with this....

[b]192.168.10.0/28 only for bond1 interface[/b]

VM1
-----

i fixed this can be ==> 192.168.10.1 - 192.168.10.10

# vim /etc/sysconfig/network-scripts/ifcfg-vlan121

DEVICE=vlan121

BOOTPROTO=none

ONBOOT=yes

IPADDR=192.168.10.3

#HWADDR=a2:c0:a0:a8:01:01

VLAN=yes

PHYSDEV=eth0

VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD


MASTER=bond1

SLAVE=yes


# vim /etc/sysconfig/network-scripts/ifcfg-vlan122

DEVICE=vlan122

BOOTPROTO=none

ONBOOT=yes

IPADDR=192.168.10.4

#HWADDR=a2:c0:a0:a8:01:01

VLAN=yes

PHYSDEV=eth0

VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD


MASTER=bond1

SLAVE=yes


# vim /etc/sysconfig/network-scripts/ifcfg-bond1

DEVICE=bond1

IPADDR=192.168.10.2

NETMASK=255.255.255.240

BOOTPROTO=none

USERCTL=no

TYPE=Ethernet

ONBOOT=yes

IPV6INIT=no

BONDING_OPTS="mode=active-backup miimon=100 downdelay=5000 updelay=5000"

GATEWAY=192.168.10.1




VM2
-----
i fixed this can be ==> 192.168.10.11 - 192.168.10.15

# vim /etc/sysconfig/network-scripts/ifcfg-vlan131

DEVICE=vlan131

BOOTPROTO=none

ONBOOT=yes

IPADDR=192.168.10.12

#HWADDR=a2:c0:a0:a8:01:01

VLAN=yes

PHYSDEV=eth0

VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD


MASTER=bond1

SLAVE=yes


# vim /etc/sysconfig/network-scripts/ifcfg-vlan132

DEVICE=vlan132

BOOTPROTO=none

ONBOOT=yes

IPADDR=192.168.10.13

#HWADDR=a2:c0:a0:a8:01:01

VLAN=yes

PHYSDEV=eth0

VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD


MASTER=bond1

SLAVE=yes


# vim /etc/sysconfig/network-scripts/ifcfg-bond1

DEVICE=bond1

IPADDR=192.168.10.11

NETMASK=255.255.255.240

BOOTPROTO=none

USERCTL=no

TYPE=Ethernet

ONBOOT=yes

IPV6INIT=no

BONDING_OPTS="mode=active-backup miimon=100 downdelay=5000 updelay=5000"

GATEWAY=192.168.10.1

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: VLAN bond issue

Post by jlehtone » 2013/07/23 12:17:46

Please, lets not advance a single bit before you have described us [b]what do you think that bonding does[/b].

narayanab16
Posts: 80
Joined: 2012/03/13 10:56:21

Re: VLAN bond issue

Post by narayanab16 » 2013/07/25 16:55:03

Bonding is used to load between 2 interfaces[NICs]

if one of the nic0 failed network wont be down and nic1 will handle the requests, the end user will not come to know that nic0 is down really

advantages

1)high availability
2)failover etc


I have a basic query to [b]Network Admins[/b]


if single machine has 4 NICs [physical and virtual lan] and another machine has 4 NICs[physical and virtual]

How do i make interaction between them



say example

gateway : 192.168.1.1

nic0 of box1 to nic0 of box2 --done working ex: 192.168.1.12, 255.255.255.0, 192.168.1.13, 255.255.255.0,

vlan120 of box1 to vlan130 of box2 not working ex: 192.168.100.2, 255.255.255.0, 192.168.100.3, 255.255.255.0,

box1#ping 192.168.1.13 -- works well

box1#ping 192.168.100.3 -- network unreachable how do i make this working? this is what oracle cloud uses


suppose if different subnets uses by box1, box2 of say nics how do we make interaction between them with different subnets matches with netmask

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: VLAN bond issue

Post by gerald_clark » 2013/07/25 17:07:27

If you are running Oracle 5 you are still in the wrong forum.
This is CentOS 6.

Post Reply