Sample Header Ad - 728x90

Centos 7 Two Gateways (virtual and VLAN) question

0 votes
0 answers
142 views
I could not get this working. I have two public ip addresses . on centos 6 my setup was eth0.2 VLAN2 was DHCP from ISP 1 and eth0:1 was static ip address from ISP 2. It worked out the box without any configuration, metric or table routes entries. ON centos 7 I set the ifcfg-eno1.2and ifcfg-eno1:3 ~~~~ DEVICE=eno1.2 HWADDR=removed TYPE=Ethernet BOOTPROTO=DHCP ONBOOT=yes VLAN=yes IPV6INIT=yes USERCTL=yes PEERDNS=no ARPCHECK=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV4_ROUTE_METRIC=10 DEVICE=eno1:3 HWADDR=removed TYPE=Ethernet BOOTPROTO=none ONBOOT=yes VLAN=no IPV6INIT=yes USERCTL=yes PEERDNS=no ARPCHECK=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV4_ROUTE_METRIC=11 IPADDR=APUBLICIPADDRESS PREFIX=25 GATEWAY=THEGATEWAY DNS1=1.1.1.1 ~~~~~ When i restart the network services only the first interface works, but if i release the ip address eno1:3 starts working. I tried adding/removing IPV4_ROUTE_METRIC=10 on eno1.2 and IPV4_ROUTE_METRIC=11 on eno1:3 to no avail Any tips?
Asked by user3265051 (199 rep)
Jun 29, 2023, 12:21 PM
Last activity: Jun 29, 2023, 12:41 PM