FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Posts
    637

    Troubles setting up two network cards


    Hi All,

    I have an FC26 machine set up with two network cards. It is using iptables as a perimeter firewall:

    eno1 is the internal network
    eno2 is the connection to the DSL modem. The DSL addresses is fixed

    problem: I can only get to the Internet when I `ifdown eno1`


    I am trying to achieve (netstat -rn):

    Code:
    Kernel IP routing table
    Destination      Gateway                Genmask            Flags   MSS Window  irtt Iface
    50.aaa.bbb.ccc  0.0.0.0                255.255.255.252  U         0 0          0 eno2
    192.168.xxx.0   0.0.0.0                255.255.255.0     U         0 0          0 eno1
    169.254.0.0     0.0.0.0                 255.255.0.0        U         0 0          0 eno2
    0.0.0.0         50.aaa.bbb.ccc+1   0.0.0.0              UG       0 0          0 eno2
    50.aaa.bbb.ccc is the DSL modem's gateway address
    ccc+1 is the next higher number and the IP assigned

    What I am getting is
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    0.0.0.0         50.aaa.bbb.ccc+1   0.0.0.0         UG        0 0          0 eno2
    50.aaa.bbb.ccc   0.0.0.0         255.255.255.252 U         0 0          0 eno2
    50.aaa.bbb.ccc+1   0.0.0.0         255.255.255.255 UH        0 0          0 eno1
    192.168.xxx.0   0.0.0.0         255.255.255.0   U         0 0          0 eno1
    This is my ifcfg-eno1
    Code:
    TYPE=Ethernet
    PROXY_METHOD=none
    BROWSER_ONLY=no
    BOOTPROTO=none
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=no
    IPV6_AUTOCONF=no
    IPV6_DEFROUTE=no
    IPV6_FAILURE_FATAL=no
    IPV6_PRIVACY=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=eno1
    ONBOOT=yes
    AUTOCONNECT_PRIORITY=-999
    IPADDR=192.168.xxx.xy
    PREFIX=24
    NETMASK=255.255.255.0
    NETWORK=192.168.xxx.0
    # GATEWAY=192.168.xxx.xy
    # GATEWAY=50.aaa.bbb.ccc
    # GATEWAY=50.aaa.bbb.ccc+1
    DNS1=192.168.xxx.xx
    DNS2=192.168.xxx.xy
    and my ifcfg-eno2

    Code:
    TYPE=Ethernet
    PROXY_METHOD=none
    BROWSER_ONLY=no
    BOOTPROTO=none
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=no
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=eno2
    UUID=d3c01e04-d0eb-3f23-831b-7b40ec852bca
    ONBOOT=yes
    AUTOCONNECT_PRIORITY=-999
    DEVICE=eno2
    IPADDR=50.aaa.bbb.ccc+1
    # PREFIX=30
    GATEWAY=50.aaa.bbb.ccc
    NETMASK=255.255.255.252
    NETWORK=50.aaa.bbb.ccc-1
    BROADCAST=50.aaa.bbb.ccc+2
    #DNS1=192.168.xxx.xy
    PREFIX=30
    DNS1=8.8.8.8
    DNS2=8.8.4.4
    My /etc/sysconfig/network
    Code:
    FORWARD_IPV4=true
    GATEWAY=50.aaa.bbb.ccc
    What am I doing wrong?

    Many thanks,
    -T

  2. #2
    Join Date
    Apr 2009
    Location
    central NY, USA
    Posts
    1,022

    Re: Troubles setting up two network cards

    Does this help? (Yes, I know it's CentOS/RHEL, and an older article):

    https://wiki.centos.org/TipsAndTricks/IPForwarding
    Change - the only constant.

  3. #3
    Join Date
    Feb 2010
    Posts
    637

    Re: Troubles setting up two network cards

    It look extremely promising. I won't be out there for a few day. But I will check! Thank you!

    I do have /etc/sysconifg/network:
    FORWARD_IPV4=true

    And this works in my Scientific Linux 7.3 box. Hmmmmm
    Last edited by ToddAndMargo; 3rd August 2017 at 08:21 PM.

  4. #4
    Join Date
    Apr 2009
    Location
    central NY, USA
    Posts
    1,022

    Re: Troubles setting up two network cards

    [I am horrible at this, but an idea]

    eno1 doesn't have a gateway - shouldn't that be eno2 ??? Or, if this machine is a DNS server, 127.0.0.1 in which case the DNS records will point 'outside' -

    - just a thought, not necessarily correct. I got mine working but forgot how.
    Change - the only constant.

Similar Threads

  1. Setting up 2 network cards
    By fareasd in forum Servers & Networking
    Replies: 0
    Last Post: 18th July 2007, 10:00 AM
  2. proplem setting firewall on dual network cards
    By jimrey in forum Using Fedora
    Replies: 4
    Last Post: 12th April 2006, 05:44 AM
  3. Setting up capture cards and snd-bt87x
    By ontguy in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 16th September 2004, 06:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •