LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   connecting to internet via dlink router (https://www.linuxquestions.org/questions/linux-networking-3/connecting-to-internet-via-dlink-router-159888/)

vasanthraghavan 03-19-2004 01:38 PM

connecting to internet via dlink router
 
Hi,
My computer runs Redhat Linux 9. it is connected to D-link router DI-614+, which in turn is connected to a cable modem.
Could someone in this forum please explain the steps needed for me to connect to the internet?
(Other computers connected to the router are able to get internet connections. But these run Microsoft Operating systems.)
Thank you.

AutOPSY 03-19-2004 03:17 PM

type 'redhat-config-network'

and select DCHP/BOOTP.

also type 'setup' go to firewall configuration, select no firewall.
reboot.

If this doesnt help, then its your router that is blocking requests/transfers .

Sorry that Linux isnt an unsecure point and click client OS.

vasanthraghavan 03-19-2004 04:41 PM

Thank you, but this did not seem to work.

Iridesce 03-19-2004 06:58 PM

Greetings,

Are other computers set up as static or dchp ???

Check your router ( 192.168.0.1 ) first and see if there are any access control issues.

My initial guess is that you need to set up the linux box to a static address
Run ' ifconfig ' in a terminal to see the address you are using, then enable that address in the router

Whenever you ask for help here, be sure to specify the Linux distribution you are using, the type of hardware you have ( for networking - motherboard type, network card, type of internet connection { cable, DSL, dial-up }, static or DHCP connection, etc ) so that the responder can have some idea where to begin with your system

At any rate, do post your system info and people will be a little more apt to help

Enjoy ...

vasanthraghavan 03-20-2004 06:44 AM

Hi,
Thank you for the information. Here are my inputs:
The other computers are set up as DHCPs.
The type of internet connection is cable modem.(as mentioned in the body of my first post)
The type of Linux distribution is Redhat Linux 9.(also mentioned in my first post)

Your question:
"Check your router ( 192.168.0.1 ) first and see if there are any access control issues."

in 192.168.0.1 page, after logging into the router, how can this be checked ?

Kindly let me know, if more details are needed, as my experience here is as a newbie only.
Thank you.

Iridesce 03-21-2004 01:29 AM

Only have a couple of minutes

Next step is to understand the router

Start here http://support.dlink.com/support and enter your model number - it will take you to a page that has the manual on it. Read the manual to find out how to access the browser based control center.

/bin/bash 03-21-2004 03:10 AM

There should be only one special step to using that router. When you setup the NIC card you should make the router IP your default gateway. You can select static or dhcp IP, the router most likely supports both. Check in the router because normally they will reserve a block of IP's for dhcp.

Post the output of these two commands:
ifconfig
route

vasanthraghavan 03-21-2004 09:35 AM

Here is the output of my "ifconfig" command:

lo Link encap:Local loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:393 errors:0 dropped:0 overruns:0 frame:0
TX packets:393 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29366 (25.7 kb) tx bytes:26366 (25.7 kb)


Here is the output of my "route" command:
kernel IP routing table:
Destination Gateway Genmask flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 lo
127.0.0.0 * 255.0.0.0 U 0 0 0 l o

As these two lines had problems in tabbing, here is the same info in a different format:

firat line:
Destination
169.254.0.0

Gateway
*

Genmask
255.255.0.0

flags
U

Metric
0

Ref
0

Use
0

Iface
lo

second line:

Destination
127.0.0.0

Gateway
*

Genmask
255.0.0.0

flags
U

Metric
0

Ref
0

Use
0

Iface
lo


Thank you.

/bin/bash 03-21-2004 10:14 AM

Your NIC card doesn't seem to be setup at all.
Try this:
service network restart
You should get a message about shutting down the network, and another message about starting the network. You should see a message about starting interface eth0 and a green [ OK ]
Then try the two commands again.
ifconfig
route
If you get any error messages post them here. Also post the contents of these two files:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg.eth0

<edit> This is the correct file.
/etc/sysconfig/network-scripts/ifcfg-eth0

vasanthraghavan 03-21-2004 11:29 AM

isuuing "service network restart" gave me the following lines:
Shutting down loopback interface: [OK]
Setting network parameters: [OK]
Bringing up network parameters: [OK]
(No other message about starting interface eth0.)

ifconfig and route commands gave the same output, except the numbers in TX and RX lines:
RX packets:1229
TX packets:1229

RX bytes:83522 (81.5 kb)
TX bytes:83522 (81.5 kb)

The contents of /etc/sysconfig/network file:

NETWORKING=yes
HOSTNAME=Vasanth
GATEWAY=192.168.0.1
GATEWAYDEV=""
FORWARD_IPV4="no"

There was no file with this name at all!:
/etc/sysconfig/network-scripts/ifcfg-eth0

Thank you again.

camelrider 03-21-2004 03:56 PM

Tru (as root) ifup eth0. Then run ifconfig again.

/bin/bash 03-21-2004 05:07 PM

Try this as as /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

And try this for /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Vasanth
GATEWAY=192.168.0.1
GATEWAYDEV="eth0"
FORWARD_IPV4="no"




Then run service network restart

Those 2 files are key to setting up your network. Any time you modify one just restart the network to see if the changes worked. There should be some GUI tool you could use, but I don't know what that would be in RedHat.

If the above doesn't work you could try this as /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes

Iridesce 03-22-2004 12:55 AM

Thanks for the work /b/b

vasanthraghavan 03-22-2004 08:50 AM

Thank you all for replying and helping me out. After my last email, my system was reinstalled with Redhat Linux 9. This time with DHCP. now it connects to the internet.
Once again, my thanks for this forum and members, for very helpful and timely replies.


All times are GMT -5. The time now is 10:40 AM.