This is a discussion on DSL Dlink 502T Linux Configuration for Airtel, MTNL, BSNL within the Computer Networking and Internet/broadband forums, part of the The Lounge category; I got a dsl 502 t router , pls hlp me configure my internet connection on ubuntu. where can I ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| Sponsored Links | ||
|
|
|
|||
|
method . the usual manual configure of network interface
-------------------------------------------------------------------------------------- user@localbox$ su or sudo su user@localbox# cat >> home-pesky-network-script.sh << EOF #!/bin/bash mii-tool -v ifdown -all ifconfig ethX inet 192.168.1.7 netmask 255.255.255.0 broadcast 192.168.1.255 route add default gw 192.168.1.1 ifconfig ethX up EOF user@localbox# echo " nameserver IP.ADD.RE.SS" > /etc/resolv.conf user@localbox# chmod +x home-pesky-network-script.sh && sh home-pesky-network-script.sh -------------------------------------------------------------------------------------- explaination: user@localbox$ su or sudo su user@localbox# cat >> home-pesky-network-script.sh << EOF become root, open a file and add the values while you are editing the file. no need to use the pesky vi editor if you are not used to it. MEOW is good. #!/bin/bash invoke the shell script mii-tool -v display info about your NIC cards. please dont ask how to get 100 mbps speed when your are subscribed to 512/256/128/64 kbps dsl broadband, if you know "howto convert 64 Kbps speed to 100 Mbps using alladins magic lamp? be my guest" ifdown -all will shutdown all interfaces YES ALL ALL. ifconfig ethX inet 192.168.1.7 netmask 255.255.255.0 broadcast 192.168.1.255 this will give the NIC card where ethX's X is card number, if you have one card then eth0, and add for the next one, like eth1, eth2. inet is the protocol abvr for ipv4 if you use ipv6? use inet6. my LAN eth0 node IP is 192.168.1.7 and the netmask is 255.255.255.0 if you are "LAZY?" replace 255.255.255.0 with /24 route add default gw 192.168.1.1 -> THIS IS YOUR DLINK DSL ROUTER's IP, so point all traffic to that IP, YES ALL. unless you changed the gateway access point IP to something else. ifconfig ethX up will bring up the interface alive again. Congrats you are off net lag coma. EOF is EOF end of file. this will close the .sh file and you will gain shell again. user@localbox# echo " nameserver IP.ADD.RE.SS" > /etc/resolve.conf -> this is where you replace IP.ADD.RE.SS with the DNS address given to you by your ISP which for airtel is 203.145.x.x call up your ISP if yours is different, and pick up the tertiary DNS always, people use the PRI and SEC and max traffic is via them, else use open dns else make one for yourself to the file /etc/resolv.conf self help is best help. user@localbox# chmod +x home-pesky-network-script.sh && sh home-pesky-network-script.sh HURRAY YOU SET IT TO EXEC MODE WITH +x USING CHMOD AND ALSO EXECUTED IT. NOW PARTYYYYYYYYYY. "dont forget to send me the pizza for this tiny rubbish hack doc." |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fedora 7 connect dsl-502T | anthony pereira | Getting started tutorials | 4 | 12-22-2007 02:10 PM |
| bsnl broadband connection using USB port in RHEl 4 linux | meenal | Computer Networking and Internet/broadband | 1 | 10-08-2007 12:21 PM |
| iptables linux firewall laptop script for Airtel DSL | raj | Linux software | 1 | 12-14-2006 05:11 PM |
| BSNL Broadband and BSD | Ashish Pathak | All about FreeBSD/OpenBSD/NetBSD | 5 | 08-18-2006 04:56 PM |
| dlink router password | Linux software | 1 | 12-28-2005 12:12 AM | |