Ubuntu Server and setting up two nic cards

Posted by kmalik on Ask Ubuntu See other posts from Ask Ubuntu or by kmalik
Published on 2013-06-29T01:29:05Z Indexed on 2013/06/29 4:28 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

I have ubuntu server on a computer with a wireless and hardwired nic card. The wireless needs to get the internet and pass it to the ubuntu server as well as pass it along to the hardwired nic card to more computers. I am having issues getting the basic set up as I believe the route table is grabbing from the wrong nic card.

The router is 192.168.1.0 and the server is set to 192.168.1.11 on the wireless card through DHCP

ETH0 (wired nic card) is set up to be 10.10.10.0 and the server is 10.10.10.1)

I am not a linux or networking guru but basically I am trying to have internet come from a guest network 192.168.1.0 i believe to give internet to the ubuntu server then the ubuntu server will also A) have the wired nic serve DHCP addresses to other computers via a switch or router (that acts as a switch) via 10.10.10.0 addresses. And I would love if it also passed along internet capabilities as well if possible.

Bu really at this point my hope is to at least get the internet working on the server and the DHCP to pass correctly.

At the moment the specific issue I am having is getting ubuntu server to connect to the internet and have both nic cards up and running correctly. Any help would be appreciated!

The route table is as follows:

Destination     Gateway      GM               Flags   Metric   Iface
0.0.0.0         10.10.10.1   0.0.0.0           UG      100     eth0
10.10.10.0      0.0.0.0      255.255.255.0      U        0     eth0
169.254.0.0     0.0.0.0     255.255.0.0          U       0     eth0
1992.168.1.0    0.0.0.0      255.255.255.255.0   U      0       eth1

My interfaces is set up as follows:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.10.1
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
gateway 10.10.10.1
domain-name-servers 192.168.1.0

auto eth1
iface eth1 inet dhcp
netmask 255.255.255.0
gateway 192.168.1.0
wpa-driver wext
wpa-ssid "ssid_name"
wpa-ap-scan 1
wpa-proto wpa
wpa-pairwise ccmp
wpa-group ccmp
wpa-key-mgmt wpa-psk
wpa-psk "HASH"

My DHCPD.conf (as there is a domain name server on here is as follows):

ddns-update-style none
default-lease-time 600
max-lease-time 7200
authoritative
option domain-name "Kamron's Network"
option subnet-mask 255.255.255.0
option broadcast-address 10.10.10.255
option routers 192.168.1.0
option domain-name-server 192.168.1.0 98.223.128.213
ooption subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.10 10.10.10.99 
}

log-facility local7

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about server