Static route problem

Issues related to configuring your network
Post Reply
neodize
Posts: 2
Joined: 2017/11/21 07:00:32

Static route problem

Post by neodize » 2017/11/21 07:12:54

Hi,

I have 2 NIC in 1 PC
NIC 1 - 192.168.200.60 - LAN
NIC 2 - 200.200.200.60 - DMZ

I now cant access this PC from external IP

How do I setup persistent static routing for this problem?

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         200.200.200.1   0.0.0.0         UG    100    0        0 enp1s0
0.0.0.0         192.168.200.1   0.0.0.0         UG    101    0        0 eno1
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.200.0   0.0.0.0         255.255.255.0   U     100    0        0 eno1
200.200.200.0   0.0.0.0         255.255.255.0   U     100    0        0 enp1s0

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Static route problem

Post by TrevorH » 2017/11/21 08:03:08

You've specified GATEWAY= in both /etc/sysconfig/network-scripts/ifcfg files. Don't. Put it in one of them only - the one that you need to use to get to the router to the outside world.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

neodize
Posts: 2
Joined: 2017/11/21 07:00:32

Re: Static route problem

Post by neodize » 2017/11/21 08:13:15

By right thats the idea and i already did that. But its still the same :?

When i set NIC1 off my external IP works

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Static route problem

Post by TrevorH » 2017/11/21 09:24:54

Post the contents of both ifcfg files.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply