manual network setup mini-HowTo
March 6, 2003
Here is a general overview of how to manually set up your network connection for Fd Linux. This will be a very straight-forward, intuitive mini-HowTo, so in essence, you are not going to learn the full functionality of every tool used to complete this task in an efficient manner, but rather, how it will be implemented under Fd Linux.
Again, to stand with what is stated above, you are not going to be learning all the in's and out's associated with each command in this HowTo, so further detail and knowledge is up to you.
In order to set up your network card for "network use", you're going to have to use these commands to get it going:
1) ifconfig - configure your network card interface
|ifconfig's syntax and command layout:|
|ifconfig <interface> <ip_address> [ netmask <netmask> ]|
|<interface> = the network interface you want to configure (eth0, eth1... and so on)|
|<ip_address> = the ip address you want to assign to the interface (example: 22.214.171.124)|
|<netmask> = the subnet mask of your assigned network (example: 255.255.255.0)|
2) route - preview or change your machine's IP routing table
|route's syntax and command layout:|
|route [add default gw] <ip_address> <interface>|
|[add default gw] = Sets up a route to add a default gateway for a network interface|
|<ip_address> = the ip address of the network gateway|
|<interface> = the network interface you are setting up a route for on your machine|
3) e3 - text editor
|Because of the redunancy associated with listing the general commands to edit files with this editor, we suggest you check out the e3 text editor HowTo.|
To learn more about the `ifconfig` syntax and general usage, goto the ifconfig MAN page.
To learn more about the `route` syntax and general usage, goto the route MAN page.
NOTE: ALL IP address and subnet masks are, by all means, used for example ONLY!
Now that we know the general syntax and command layout for each of the commands we need to use to get our network connection up and running, we'll go ahead and use several example steps to show you how to set it up:
The first step we want to do is set up our network interface card. We know our IP address to get on our network is 126.96.36.199 and the subnet mask we are on is 255.255.255.0. The command we can type to get our network card initialized with our IP address is:
(root->fdlinux)% ifconfig eth0 188.8.131.52 netmask 255.255.255.0
The next step we want to do is establish a route to our gateway, so that way we are able to connect to outside networks from our own (i.e. Internet). We know that the IP address for our gateway machine is 184.108.40.206 and we just set up our first interface, eth0, and that's the interface we want to tie the route to. The command we can type to get our route established is:
(root->fdlinux)% route add default gw 220.127.116.11 eth0
The last step we need to do is make our DNS server entries so we are able to resolve host names to binding IP addresses. We know that our DNS server address are 18.104.22.168 and 22.214.171.124 and the file we need to reference them into is /etc/resolv.conf. The command you would type to edit /etc/resolv.conf to put the DNS numbers into is:
(root->fdlinux)% e3 /etc/resolv.conf
Once you have the file open for editing, you will need to type this line for EACH DNS server address you want to enter:
So, we would need to type this into the /etc/resolv.conf file:nameserver 126.96.36.199
After you have completed typing in those lines, simply save and exit the editing session and viola! Your network connection is successfully set up!
If you feel that anything should be added to this mini-HowTo, please feel free to send me an Inquiry Ticket about it!