RedHat Linux - Guide to DSL Connection

Information Needed
Assigned IP address.
Assigned Subnet Mask address (255.255.255.0).
Assigned Gateway address (Change the last octet of the IP address to "1").

Assigned DNS (202.78.97.2).



Log in as root, or switch to the root user by typing su root.
At your shell prompt, type the following:
/sbin/ifconfig eth0 netmask 255.255.255.0 x.x.x.x
Replace x.x.x.x with the Static IP address assigned to the client.
Once the command has executed, type /sbin/ifconfig. The results should look similar to:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:1775 errors:0 dropped:0 overruns:0
TX packets:1623 errors:0 dropped:0 overruns:0
eth0 Link encap:Ethernet HWaddr 00:3E:11:61:FF:5E

inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4325 errors:0 dropped:0 overruns:0
TX packets:3257 errors:0 dropped:0 overruns:0
Interrupt:11 Base address:0x280

Open the file /etc/sysconfig/network in your favorite text editor. The contents should look similar to:

NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=anyname
GATEWAY=xxx.xxx.xxx.1
GATEWAYDEV=eth0

Enter the default gateway IP address of the client (xxx.xxx.xxx.1).

Save the file.

On the file /etc/resolv.conf in your favorite text editor. The contents need to look like the following:

nameserver 202.78.97.2
nameserver 202.78.97.3

Save this file.
It should now be connected via DSL. To verify connectivity, ping the gateway
It should get he following response:

PING xxx.xxx.xxx.1 (xxx.xxx.xxx.1): 56 data bytes
64 bytes from xxx.xxx.xxx.1: icmp_seq=0 ttl=254 time=11.935 ms
64 bytes from xxx.xxx.xxx.1: icmp_seq=1 ttl=254 time=12.968 ms
64 bytes from xxx.xxx.xxx.1: icmp_seq=2 ttl=254 time=12.824 ms
64 bytes from xxx.xxx.xxx.1: icmp_seq=3 ttl=254 time=10.028 ms
64 bytes from xxx.xxx.xxx.1: icmp_seq=4 ttl=254 time=12.744 ms

--- xxx.xxx.xxx.xxx ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss
Press CTRL-C to stop pinging the server.

Your Linux box should now be connecting via your DSL line.

NOTE: To make these changes permanent between reboots, you must put the command

/sbin/ifconfig eth0 netmask 255.255.255.0 xxx.xxx.xxx.xxx in /etc/rc.local.
RedHat machines may use the /usr/sbin/netconfig utility instead.

No comments:

Post a Comment