LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2004, 01:05 PM   #1
tree_buddy
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 26

Rep: Reputation: 15
no "inet addr" for eth0 interface


I just setup this slack box and ran my netconfig. I am on a shared cable modem connection (switch) with ip addresses from a dhcp server at my ISP. When run "ifconfig eth0", there is no line specifying the ip address (the inet addr: field). It looks similar to this:

Link encap:Ethernet HWaddr 00:50:FC:4C:B6:51
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39080 errors:0 dropped:0 overruns:0 frame:0
TX packets:20737 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:56575180 (53.9 MiB) TX bytes:1424432 (1.3 MiB)
Interrupt:11 Base address:0xfc00

Am I missing something? I at this point I am not able to access the internet. This is the first time I have had two computers running and networked. Thank you in advance!!
 
Old 04-15-2004, 02:57 PM   #2
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Rep: Reputation: 30
you most likely need to specify that you want that certain interface to utilize DHCP...

I am not familiar with slackware so I cannot comment on exactly how this is done. I know that on my RedHat boxes I would edit /etc/sysconfig/network-scripts/ifcfg-eth0 and set the "BOOTPROTO" variable to "dhcp".

Also, have you purchased another IP address?
 
Old 04-15-2004, 03:26 PM   #3
tree_buddy
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 26

Original Poster
Rep: Reputation: 15
Do I have to purchase a second ip? My cable connection is split by a Linksys 5 port switch (not router). Not sure how this works, I figured that the second computer would be assigned a dynamic address just like the first computer I set up.

My first machine was a windows box that I've had since college, and have since created a partition w/ Redhat and then Slackware 9.1. When I start that machine, the dhcp worked fine, without having to change the script. I am not too keen on assigning ips, when to use static ips and what the isp allows. The only internal network ip that I use is the loopback.
 
Old 04-16-2004, 01:02 AM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
If you want two public ip's you need to pay your isp for that, then it should workwith just a switch. Right now, your isp will ignore the second box.
You're going to need a router if you only want one routable(public) ip.
With a router, the isp's DHCP assigns a routable ip to the WAN port on your router. The router's DCHP assigns private ip addresses to your machines, then a feature called NAT let's you split your one public ip for your machines to both use. The NAT router also adds another level of security to your network.
 
Old 04-19-2004, 04:27 AM   #5
tree_buddy
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 26

Original Poster
Rep: Reputation: 15
Thank you Rhell, I am beginning to read up on this. Looks like I could just setup another linux box to be my router/firewall, then switch the connection from there. I guess I now would need a second network card for the Routing machine??
 
Old 04-19-2004, 10:17 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Yep.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual PC 2004 and VWware Workstation - "interface eth0 [failed]" abijahboaz Linux - Newbie 8 10-16-2004 07:53 PM
"Bringing up interface eth0: failed" on 3com NIC zoinkedzonker Linux - Networking 3 08-17-2004 12:18 AM
There is none "inet addr:" or "mask:". wuzhong Linux - Networking 2 08-08-2004 06:12 AM
rh8.0 boot up stuck on "bringing up interface eth0" tnf Linux - Wireless Networking 7 03-22-2004 07:41 AM
RHL7.3 stops loading at "Bringing interface of eth0" rvijay17 Linux - General 1 10-10-2002 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration