Jump to content
funtoo forums
  • 0
Sign in to follow this  
eusanpe

Multiple Nics Configuration

Question

Hello all,

I have a Funtoo system with two nics.

eth0---> IP:: 192.168.3.40 ---> Gateway: 192.168.3.1

eth1---> IP: 192.168.20.120---> Gateway 192.168.20.1

What I would like is to add a gateway for each nic. I am trying to figure this out with the netif scripts. Is there a way to assign static DNS Servers per nic? Currently the DNS Servers for eth0 are added to resolv.conf and then the DNS Server for eth1 is added afterwards.

Thanks,

Tony

netif.eth0

template="interface"
ipaddr="192.168.3.40/24"
#gateway="192.168.3.1"
nameservers="192.168.2.10 192.168.2.11"
domain="xxxxxx.com"

netif.eth1

template="interface"
ipaddr="192.168.20.120/24"
gateway="192.168.20.1"
nameservers="192.168.20.1"

netstat

# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.20.1    0.0.0.0         UG        0 0          0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
192.168.3.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.20.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×