LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2013, 11:15 PM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 579

Rep: Reputation: 56
broken setup for bond0 of wireless and wi-fi - can't PING


I'm using 'modprobe bonding mode=active-backup miimon=100 primary=eth0' to bond my wired and wireless NICs so that I can switch between the two interfaces without having to bother bringing them up individually depending on my location. eth0 is my wired and wlan0 is my wireless. For the most part it's working as it should, but what I found is if both interfaces are active then I can't PING any computers on the LAN nor can they me. If I issue 'ifconfig wlan0 down' to deactivate the wireless link then PING on the LAN works again. If I bring up the wireless link again, PING stops. So basically I cannot PING as long as the wireless link is up... is this normal or am I missing something here?
 
Old 05-02-2013, 05:36 AM   #2
captdavid1949
LQ Newbie
 
Registered: Sep 2012
Location: Deltaville VA
Distribution: Navigatrix
Posts: 21

Rep: Reputation: Disabled
Not clear why you are using port trunking (bonding) unless you actually need redundant links, fault tolerance or a load balanced network. That being said, it sounds like a gateway conflict being caused by improper entries in one or more network script files. Please post results of:

$ route -n

As well as contents of /etc/sysconfig/network-scripts/ ifcfg-bond0, ifcfg-eth0, ifcfg-wlan0
 
Old 05-02-2013, 09:05 PM   #3
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 579

Original Poster
Rep: Reputation: 56
Here's the result of route -n

Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    212    0        0 bond0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
172.16.186.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
192.168.1.0     0.0.0.0         255.255.255.0   U     212    0        0 bond0
192.168.167.0   0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
I don't have the mentioned files for network scripts, but mine for the most part is unaltered from the stock Slackware distribution. Only addition was adding the modprobe lined mentioned in the original post to set up bonding followed by enslaving eth0 and then wlan0. Hopefully this is enough to help, if not, let me know what else I can post.
 
Old 05-03-2013, 06:41 AM   #4
captdavid1949
LQ Newbie
 
Registered: Sep 2012
Location: Deltaville VA
Distribution: Navigatrix
Posts: 21

Rep: Reputation: Disabled
Is this related to your 2011 Thread or is this a new issue? I'm a hat kinda guy rather than slackware but it still sounds like a basic cfg conflict. Please post contents of
/etc/rc.d/rc.inet1.conf

and result of
$ ifconfig
 
Old 05-03-2013, 11:44 PM   #5
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 579

Original Poster
Rep: Reputation: 56
That thread was me! Back when I was trying to get bonding working and little has changed since then in terms of configuration. For the most part bonding works, it's just that I can't ping machines on the LAN other than myself and the gateway when the wireless connection is active. The internet works fine regardless.

Looking into this some more, it looks like when the wireless is up I can ping the outside, but not on the LAN aside from the gateway. Not a firewall issue either as I have disabled it temporarily with no change.


Here's my /etc/rc.d/rc.inet1.conf
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Config information for bond0
IFNAME[5]="bond0"
IPADDR[5]=""
NETMASK[5]=""
USE_DHCP[5]="yes"
DHCP_HOSTNAME[5]=""

# Default gateway IP address:
GATEWAY=""

IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]=""
DHCP_HOSTNAME[4]=""
DHCP_KEEPNTP[4]="yes"
WLAN_ESSID[4]="VZFIOS8"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
WLAN_WPAWAIT[4]=10
Here's the output of ifconfig
Code:
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.1.4  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::f2de:f1ff:fe67:8984  prefixlen 64  scopeid 0x20<link>
        ether f2:d1:fe:62:83:83  txqueuelen 0  (Ethernet)
        RX packets 99080604  bytes 28089165254 (26.1 GiB)
        RX errors 0  dropped 4172  overruns 0  frame 0
        TX packets 145936397  bytes 180150363115 (167.7 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether f2:d1:fe:62:83:83  txqueuelen 1000  (Ethernet)
        RX packets 98546265  bytes 27872343694 (25.9 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 145145516  bytes 179253808166 (166.9 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xd8300000-d8320000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 1027850  bytes 61375650 (58.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1027850  bytes 61375650 (58.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=6147<UP,BROADCAST,SLAVE,MULTICAST>  mtu 1500
        ether f2:d1:fe:62:83:83  txqueuelen 1000  (Ethernet)
        RX packets 534339  bytes 216821560 (206.7 MiB)
        RX errors 0  dropped 4172  overruns 0  frame 0
        TX packets 790881  bytes 896554949 (855.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Last edited by dimm0k; 05-04-2013 at 10:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bonding with bond0, but VMware Workstation does not see bond0 dimm0k Linux - Virtualization and Cloud 1 07-14-2011 09:22 PM
bridging wired and wireless Ethernet - wireless fails to arp, ping, but creates loop paulcsf Linux - Software 1 02-18-2010 03:18 AM
Working ping, traceroute; all other networking broken rcs1000 Linux - Networking 4 11-05-2007 08:19 AM
samba setup broken pipe? meping Linux - Software 0 04-09-2006 04:53 PM
FC4 has broken my ADSL setup djsbriscoe Linux - Networking 1 06-18-2005 10:26 AM

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

All times are GMT -5. The time now is 07:07 AM.

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