LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bonding issue (http://www.linuxquestions.org/questions/linux-newbie-8/bonding-issue-886217/)

fernfrancis 06-14-2011 04:31 AM

bonding issue
 
Hi All

I have configured bonding on 64 bit centos 5.4

I have to put the machine to a different VLAN for that i did the Ip change and restated the network. but i cant ping the gateway or any other server in that network. the cofig files are as follows


vi /etc/modprobe.conf
alias eth0 bnx2
alias eth1 bnx2
alias scsi_hostadapter aacraid
alias scsi_hostadapter1 ata_piix
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
alias bond0 bonding
options bonding mode=1 miimon=100

cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.4.122.100
NETMASK=255.255.255.224
GATEWAY=10.4.122.98


cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MTU=1500
MASTER=bond0
SLAVE=yes

cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=00:21:5E:70:12:CA
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
MTU=1500
USERCTL=no


the new IP address 10.4.123.6
gateway 10.4.123.1
netmask 255.255.255.0

someone please let me know what i am doing wrong

ssrameez 06-14-2011 05:30 AM

Quote:

Originally Posted by fernfrancis (Post 4384986)

cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.4.122.100
NETMASK=255.255.255.224
GATEWAY=10.4.122.98


the new IP address 10.4.123.6
gateway 10.4.123.1
netmask 255.255.255.0

I am not sure whether I understood your problem correctly.
But I could see a difference in the IP address that you are using in your bond and the subnet range.

Your bond is configured to have 10.4.122 subnet. and the new IP address seems to be in 10.4.123. Is that intended?

fernfrancis 06-14-2011 11:36 PM

in that file i change the values and restart the network service

cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.4.122.100 ------ this is changed to 10.4.123.6
NETMASK=255.255.255.224 ------ this to 255.255.255.0
GATEWAY=10.4.122.98 ------ this to 10.4.123.1

After the the above changes are done and network changes are done i cant ping any other machine in the 10.4.123.X range

what could be the reason for this?

before this change was done i could ping the machines in the 10.4.122.X/27 range.

ssrameez 06-15-2011 05:03 AM

To which subnet your computer (physically) connected to, 10.4.123 or 10.4.122

fernfrancis 06-15-2011 11:42 PM

In the same network we have different vlans.After changing the IP i try to ping the machines in that valn but cant for some reason dont know why

pinga123 06-16-2011 12:17 AM

Is the port trucked with new vlan? This settings need to be done on switch level.
So even if you are intend to ping both the vlan the underlying port on switch needs to be truncked with the new vlan.
I think you need to trunk 123 series vlan with the port.
10.4.123.X
You must be physically connected to 10.4.122.X as you can able to ping that series machine.

Seek help from your network team.


All times are GMT -5. The time now is 11:02 PM.