Setting up a second NIC (Network Interface Card) and completing network configuration

1999.09.14.02

When demonstrating the use of lynx earlier, the documentation specified a specific file to move into the appropriate directory. This file (dmfe.o) was a binary kernel module for the second ethernet card that comes on these computers. This document is about configuring that second ethernet card.

Configuring the second Ethernet card

Once again as root, run linuxconf. Go to the section Config, Networking, Client tasks, Basic host information and press enter.

Note: At this point, you should choose two names; one for your computer, and one for your private network. This should be something that you won't visit; if you name your private network yahoo.com and you visit yahoo.com quite often, it will get a bit inconvenient!

When you first enter this specific screen, there will be information for your first ethernet card (the one you configured during the installation) under the heading "Adaptor 1". Don't touch this information; it's rather useful to you. Instead, use the down arrow to reach the heading "Adaptor 2" and configure it as below:

			________Adaptor 2________
			[X] Enabled
Config mode		(o) Manual ( ) Dhcp ( ) Bootp		
Primary name + domain	computer.domain.com/net/org 	(Use your names)	
Aliases (opt)		computer			(Again, use your names)
IP address		10.0.0.x			(At home, x should probably be 1.  However, in training, each of you will have a different address)
Netmask	(opt)		255.0.0.0
Net device		eth1
Kernel module		dmfe
I/O port (opt)
Irq (opt)
Accept the changes.

Configuring DNS forwarding

Go to Config, Networking, Client tasks, Name server specification (DNS) and press enter.

Set the options as follows:

DNS usage			[X] DNS is required for normal operation
default domain			domain.net/com/org	(Insert your chosen name)
nameserver 1			10.0.0.x		(Use your own address)
nameserver 2 (opt)
nameserver 3 (opt)
search domain 1 (opt)		domain.net/com/org
search domain 2 (opt)
search domain 3 (opt)
Accept the changes

Enable Routing

Go to Config, Networking, Client tasks, Routing and Gateways, Defaults. Set the options as follows: (NOTE: YOU SHOULD CHANGE THIS TO YOUR ISP'S DEFAULT GATEWAY AS SOON AS YOU KNOW WHAT IT IS! IF YOU DON'T, YOUR NETWORK TRAFFIC WILL GO NOWHERE. If you are using DHCP to determine your external IP address, you should leave this blank, as DHCP will fill it in for you.)

 Default gateway		207.101.59.1
				[X] enable routing

Setting up the server as a DNS forwarding server

Go to Config, Networking, Server Tasks, Domain Name Server (DNS), Config, forwarders and press enter. Set the option as follows: (NOTE: YOU SHOULD CHANGE THIS TO YOUR ISP'S DNS SERVER AS SOON AS YOU KNOW WHAT IT IS! FAILING TO DO SO WILL RESULT IN EXTREMELY POOR NETWORK PERFORMANCE!)

IP address	207.101.59.2


See Also: ifconfig, named, route
Related Pages: DNS HOWTO