Find the answer to your Linux question:
Results 1 to 9 of 9
Hello. I have 2 internet connections from the one ISP - Wireless and Fiber-optic. I have 2 NIC: eth0: 192.168.1.2 (gw 192.168.1.1 (hardware router with WAN IP 212.12.12.4) , netmask ...
  1. #1
    Just Joined! FireMaster's Avatar
    Join Date
    Feb 2008
    Location
    Bulgaria
    Posts
    9

    Exclamation Problem with configure 2 NIC

    Hello. I have 2 internet connections from the one ISP - Wireless and Fiber-optic.
    I have 2 NIC:
    eth0: 192.168.1.2 (gw 192.168.1.1 (hardware router with WAN IP 212.12.12.4) , netmask 255.255.255.0)
    eth1: 212.12.12.5 netmask: 255.255.252.0 and Gateway 212.12.12.1


    if eth1 is down , everything is ok - have ping and services (apache, smtp etc) is fine!

    If up eth1 , have ping to eth0, have ping to eth1, but services don't work!

    If check services from the same network on eth1 or eth0 , everything works!
    The problem is how to setup route for everyone NIC ?

    If incoming traffic from eth0 GW must be this on eth0

    if incoming traffic from eth1 GW must be this for eth1

    Thanks , and best regards!
    Attached Images Attached Images

  2. #2
    Linux User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    353
    You need to set the routing and gateway for each card in your network settings. Add the routing information for eth1.
    (Not too familiar with RHat/Fedora, but they used to have an admin tool for setting up the network.)
    You do realise, I hope, that unless eth1 has a firewall provided by your isp, it is an open connection.

  3. #3
    Just Joined! FireMaster's Avatar
    Join Date
    Feb 2008
    Location
    Bulgaria
    Posts
    9
    I forget the OS is Fedora 8. Not found "yast" ?!

    [root@mail ~]# yum install yast
    Setting up Install Process
    Parsing package install arguments
    No package yast available.
    Nothing to do
    [root@mail ~]#

  4. #4
    Linux User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    353
    Sorry, I thought it was suse. See amended reply above.

  5. #5
    Just Joined! FireMaster's Avatar
    Join Date
    Feb 2008
    Location
    Bulgaria
    Posts
    9
    yes, from my ISP everything is open - not have firewall and etc.
    I wanna set up this:

    If incoming request from eth1 , using eth1 gateway.
    If incoming request from eth0 , using eth0 gateway.


    Any other ideas?

  6. #6
    Just Joined! FireMaster's Avatar
    Join Date
    Feb 2008
    Location
    Bulgaria
    Posts
    9

    Nobody?!

    Somebody can help?!

  7. #7
    Linux User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    353
    It depends on why you need both connections to your box. To get them both on the same box, set up the routing/gateways for each network card in the network setup.

  8. #8
    Just Joined! FireMaster's Avatar
    Join Date
    Feb 2008
    Location
    Bulgaria
    Posts
    9
    Quote Originally Posted by whych View Post
    It depends on why you need both connections to your box. To get them both on the same box, set up the routing/gateways for each network card in the network setup.
    BECAUSE the eth0 is a fiber optic, eth1 is a wireless.

  9. #9
    Linux User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    353
    Yes, but if the wireless connection is just so that your own wireless devices can get access to the internal network, all you need is the fiber connection.
    Or do you need to allow some users only wireless access with no internal network?
    Have a search for general network routing and firewall principles and have a read. That way you can get a clearer idea of what you are wanting to achieve and the pitfalls involved.

Posting Permissions

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