S
S
simple_math2014-01-23 06:50:00
linux
simple_math, 2014-01-23 06:50:00

Setting up a second network interface in Linux Oracle 6.4

Hello! I'm a noob and now I'm embarrassed. There is a piece of iron with two network cards. On eth0, it is connected to the internal network, the address is obtained via dhcp, and it also goes to the Internet.
There is a channel of another provider with an external ip, it was plugged into the second network card, but was not configured. There is a sheet with settings from this provider, I'm trying to apply them:
In the file /etc/sysconfig/network-scripts/ifcgf-eth1:
DEVICE=eth1
HWADDR=XX:XX:XX:XX:XX:XX
TYPE=Ethernet
UUID=very long
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=XXX.XXX.XXX.94
NETMASK=255.255.255.252
GATEWAY=XXX.XXX.XXX.93
DNS0=XXX.XXX.XXX.7
DNS1=XXX.XXX.XXX.33
Then ifup eth1. Well, you guessed it, nothing works. 94 address is not pinged. From within, for example, ping -I eth1 8.8.8.8 does not ping either. Gateway 93 is pinged.
There are two addresses in the resolv file - DNS1 from the eth0 settings and DNS1 from the eth1 settings.
Tell me where to look and what might be missing, please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Chromium58, 2014-01-23
@simple_math

Set XXX.XXX.XXX.93 as the default
route ip route add default via XXX.XXX.XXX.93

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question