Forums

Resolved
0 votes
My default gateway is not being set on a new install of ClearOS 7.5. I have bonded interfaces for external and lans. The external address is assigned via DHCP.

I can get the system to work by SSHing into the ClearOS box via the lan interface and running: "route add default gw 172.19.69.1".

I have tried adding GATEWAY="172.19.69.1" to /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-bond0, /etc/sysconfig/network-scripts/ifcfg-bond1, and /etc/sysconfig/network-scripts/ifcfg-bond2 but that still doesn't set the default gateway.


root@atx-lab-01:~# ssh root@10.11.0.1
root@10.11.0.1's password:
Last login: Tue Jul 24 10:49:34 2018 from 10.11.0.5
[root@atxlab ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun1
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
10.8.10.0 10.8.10.2 255.255.255.0 UG 0 0 0 tun0
10.8.10.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.11.0.0 0.0.0.0 255.255.255.0 U 0 0 0 bond1
10.11.1.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0.10
10.11.2.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0.20
172.19.69.0 0.0.0.0 255.255.255.0 U 0 0 0 bond2
[root@atxlab ~]# route add default gw 172.19.69.1
[root@atxlab ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.19.69.1 0.0.0.0 UG 0 0 0 bond2
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun1
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
10.8.10.0 10.8.10.2 255.255.255.0 UG 0 0 0 tun0
10.8.10.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.11.0.0 0.0.0.0 255.255.255.0 U 0 0 0 bond1
10.11.1.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0.10
10.11.2.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0.20
172.19.69.0 0.0.0.0 255.255.255.0 U 0 0 0 bond2



[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
BONDING_MASTER="yes"
BONDING_OPTS="mode=4 miimon=100"

[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
IPADDR="10.11.0.1"
NETMASK="255.255.255.0"
BONDING_MASTER="yes"
BONDING_OPTS="mode=1 miimon=100"

[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond2
DEVICE=bond2
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="dhcp"
BONDING_MASTER="yes"
BONDING_OPTS="mode=1 miimon=100"



[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
DEVICE=em1
TYPE="Bonded"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
MASTER="bond0"
SLAVE="yes"

[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-em2
DEVICE=em2
TYPE="Bonded"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
MASTER="bond0"
SLAVE="yes"

[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-p1p1
DEVICE=p1p1
TYPE="Bonded"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
MASTER="bond2"
SLAVE="yes"

[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-p1p2
DEVICE=p1p2
TYPE="Bonded"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
MASTER="bond22"
SLAVE="yes"

[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-p3p1
DEVICE=p3p1
TYPE="Bonded"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
MASTER="bond1"
SLAVE="yes"

[root@atxlab ~]# cat /etc/sysconfig/network-scripts/ifcfg-p3p2
DEVICE=p3p2
TYPE="Bonded"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="none"
MASTER="bond1"
SLAVE="yes"



[root@atxlab ~]# cat /etc/clearos/network.conf
# Network mode
MODE="gateway"

# Network interface roles
EXTIF="bond2"
LANIF="bond0 bond0.10 bond0.20 bond1"
DMZIF=""
HOTIF=""

# Domain and Internet Hostname
DEFAULT_DOMAIN="nbritton.com"
INTERNET_HOSTNAME="atxlab.nbritton.com"

# Extra LANS
EXTRALANS=""

# ISP Maximum Speeds
P1P1_MAX_DOWNSTREAM=0
P1P1_MAX_UPSTREAM=0
P1P2_MAX_DOWNSTREAM=0
P1P2_MAX_UPSTREAM=0
P3P2_MAX_DOWNSTREAM=0
P3P2_MAX_UPSTREAM=0
Tuesday, July 24 2018, 04:52 PM
Share this post:
Responses (1)
  • Accepted Answer

    Tuesday, July 24 2018, 05:58 PM - #Permalink
    Resolved
    0 votes
    Looking on my phone, I think you have an error in ifcfg-p1p2 in the MASTER setting.
    The reply is currently minimized Show
Your Reply