wshawn
4th April 2004, 04:43 AM
Using a Linksys router in this example:
1. Using a browser see if you can get into the router by going to 192.168.1.1 or 192.168.0.1
2. Under the status tab grab the info for dns and write it down
Using the GUI.
3. Goto System Settings | Network
4. Type su password
5. Make sure your eth device is active
6. Double Click the active device
7. General tab select Statically set IP address
8. For address match the first three numbers you used to get into router and change the four number to what you want it to be static.
9. Subnet mask is 255.255.255.0
10. Default gateway is the same number you got into the router in step 1.
11. Make sure the check marks in the first two boxes are turned on if that is the configuration you want (in other words network works after reboots)
12. Hit OK
13. Select DNS tab
14. Leave host name alone
15. Enter the numbers you wrote down in step 2
16. dns search path should be the hostname of router (cfl.rr.com for Road Runner in Central Florida for example)
17. Select Hosts tab
18. Select New
19. Enter the router address here
20. enter a name like gateway
21. enter an alias /description
22. Select Ok
23. Exit and save info
24. Reboot the computer to test your configuration.
Remember it is not dhcp so it will not show up in the router in the DHCP list. You can verify your settings are correct by talking to the router by checking the log in the router after going to a few websites and see if your linux box is in the outbound portion of the log.
Of course you can terminal an answer of your current ip, but I like to doublecheck outside the box.
Drop to a terminal
su -
/sbin/ifconfig
1. Using a browser see if you can get into the router by going to 192.168.1.1 or 192.168.0.1
2. Under the status tab grab the info for dns and write it down
Using the GUI.
3. Goto System Settings | Network
4. Type su password
5. Make sure your eth device is active
6. Double Click the active device
7. General tab select Statically set IP address
8. For address match the first three numbers you used to get into router and change the four number to what you want it to be static.
9. Subnet mask is 255.255.255.0
10. Default gateway is the same number you got into the router in step 1.
11. Make sure the check marks in the first two boxes are turned on if that is the configuration you want (in other words network works after reboots)
12. Hit OK
13. Select DNS tab
14. Leave host name alone
15. Enter the numbers you wrote down in step 2
16. dns search path should be the hostname of router (cfl.rr.com for Road Runner in Central Florida for example)
17. Select Hosts tab
18. Select New
19. Enter the router address here
20. enter a name like gateway
21. enter an alias /description
22. Select Ok
23. Exit and save info
24. Reboot the computer to test your configuration.
Remember it is not dhcp so it will not show up in the router in the DHCP list. You can verify your settings are correct by talking to the router by checking the log in the router after going to a few websites and see if your linux box is in the outbound portion of the log.
Of course you can terminal an answer of your current ip, but I like to doublecheck outside the box.
Drop to a terminal
su -
/sbin/ifconfig