Forums

Gustavo
Gustavo
Offline
Resolved
0 votes
Hi gurus:

I'm trying to use the Multi-Wan app (Version 1.4.20-1), but my eth1 is always offline.

I'm sure that is not a hardware problem because I'm able to ping the router/modem with a private IP

# ping -I eth1 192.168.0.1
PING 192.168.0.1 (192.168.0.1) from xxx.xxx.xxx.117 eth1: 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.02 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.405 ms
...


Also I'd able to use this WAN link successfully on my notebook.

The syswatch log shows:

#  tail -f /var/log/syswatch
Fri Aug 22 14:04:40 2014 info: eth1 - waiting for static IP reconnect
Fri Aug 22 14:04:52 2014 info: eth1 - ping check on gateway failed - xxx.xxx.xxx.1
Fri Aug 22 14:04:54 2014 info: eth1 - ping check on server #1 failed - 69.90.141.72
Fri Aug 22 14:04:59 2014 info: eth1 - ping check on server #2 failed - 67.18.166.2
Fri Aug 22 14:04:59 2014 warn: eth1 - connection is down
Fri Aug 22 14:05:01 2014 info: eth1 - waiting for static IP reconnect


I think that the root cause of this problems is a misconfiguration of routing table

# ip route
10.8.10.2 dev tun1 proto kernel scope link src 10.8.10.1
10.8.0.2 dev tun0 proto kernel scope link src 10.8.0.1
xxx.xxx.xxx.0/24 dev eth1 proto kernel scope link src xxx.xxx.xxx.117
10.8.0.0/24 via 10.8.0.2 dev tun0
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.32
10.100.100.0/24 dev eth0 proto kernel scope link src 10.100.100.1
10.8.10.0/24 via 10.8.10.2 dev tun1
default via 192.168.1.1 dev eth2



# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.10.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
xxx.xxx.xxx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
10.100.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.8.10.0 10.8.10.2 255.255.255.0 UG 0 0 0 tun1
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth2



# ip rule
0: from all lookup local
50: from all lookup 50
100: from all fwmark 0x8000 lookup 100
101: from all fwmark 0x8001 lookup 101
200: from xxx.xxx.xxx.117/24 lookup 200
201: from 192.168.1.32/24 lookup 201
250: from all lookup 250
32766: from all lookup main
32767: from all lookup default


# ip route show table 100
10.8.10.2 dev tun1 proto kernel scope link src 10.8.10.1
10.8.0.2 dev tun0 proto kernel scope link src 10.8.0.1
xxx.xxx.xxx.0/24 dev eth1 proto kernel scope link src xxx.xxx.xxx.117
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.32
10.8.0.0/24 via 10.8.0.2 dev tun0
10.100.100.0/24 dev eth0 proto kernel scope link src 10.100.100.1
10.8.10.0/24 via 10.8.10.2 dev tun1
default via xxx.xxx.xxx.1 dev eth1



# ip route show table 101
10.8.10.2 dev tun1 proto kernel scope link src 10.8.10.1
10.8.0.2 dev tun0 proto kernel scope link src 10.8.0.1
xxx.xxx.xxx.0/24 dev eth1 proto kernel scope link src xxx.xxx.xxx.117
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.32
10.8.0.0/24 via 10.8.0.2 dev tun0
10.100.100.0/24 dev eth0 proto kernel scope link src 10.100.100.1
10.8.10.0/24 via 10.8.10.2 dev tun1
default via 192.168.1.1 dev eth2



# ip route show table 250
default via 192.168.1.1 dev eth2


Anyone can help me?

Other configurations:

Version : ClearOS Community release 6.6.0 Beta (Beta 1)
Kernel Version : 2.6.32-431.23.3.v6.x86_64
Network Mode : Gateway Mode

I Have 3 NIC's,

eth0 - LAN - Onboard
=======================
Vendor Broadcom Corporation
Device NetXtreme BCM5721 Gigabit Ethernet PCI Express
Bus PCI
Link Yes
Speed 1000 Mb/s

Settings
Interface : eth0
Role : LAN
Connection Type : Static
IP Address : 10.100.100.1
Netmask : 255.255.255.0


eth1 - External - PCI - Connected to Motorola SVG1202 Cable Modem/Router in bridge mode (NAPT) and spoofed MAC Address.

Vendor Intel Corporation
Device 82557/8/9/0/1 Ethernet Pro 100
Bus PCI
Link Yes
Speed 100 Mb/s

Settings
Interface : eth1
Role : External
Connection Type : Static
IP Address : xxx.xxx.xxx.117
Netmask : 255.255.255.0
Gateway : xxx.xxx.xxx.1

Eth2 - DHCP External - PCI - Connected to D-Link DSL-2750B Router

Vendor 3Com Corporation
Device 3c905B 100BaseTX [Cyclone]
Bus PCI
Link Yes
Speed 100 Mb/s

Settings
Interface : eth2
Role : External
Connection Type : DHCP
Hostname :
Automatic DNS Servers : Unchecked


# cat /etc/sysconfig/network-scripts/ifcfg-eth*
DEVICE=eth0
TYPE="Ethernet"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="static"
IPADDR="10.100.100.1"
NETMASK="255.255.255.0"

DEVICE=eth1
TYPE="Ethernet"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="static"
IPADDR="xxx.xxx.xxx.117"
NETMASK="255.255.255.0"
GATEWAY="xxx.xxx.xxx.1"

DEVICE=eth2
TYPE="Ethernet"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="dhcp"
PEERDNS="no"



# cat /etc/clearos/network.conf
# Network mode
MODE="gateway"

# Network interface roles
EXTIF="eth1 eth2"
LANIF="eth0"
DMZIF=""
HOTIF=""

# Domain and Internet Hostname
DEFAULT_DOMAIN="acme.com"
INTERNET_HOSTNAME="gateway.acme.com"

# Extra LANS
EXTRALANS=""


Internal DNS (bind) and DHCP Server
DNS Server #1 10.100.100.22
DNS Server #2 10.100.100.21

# cat /etc/resolv-peerdns.conf
; generated by /sbin/dhclient-script
search acme.com
nameserver 10.100.100.22
nameserver 10.100.100.21


# cat /etc/clearos/multiwan.conf
MULTIPATH="on"
MULTIPATH_WEIGHTS="eth1|1 eth2|3"
Friday, August 22 2014, 06:55 PM
Share this post:
Responses (1)
  • Accepted Answer

    Monday, September 01 2014, 08:29 PM - #Permalink
    Resolved
    0 votes
    I can't get my head round all this at the moment, but one thing to note is that I believe the DNS Servers need to be externally resolvable and so cannot reside on your LAN for ClearOS only (i.e. LAN devices can use other local DNS servers such as your BIND servers)
    The reply is currently minimized Show
Your Reply