LinuxQuestions.org
Visit Jeremy's Blog.
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-07-2006, 11:01 AM   #1
shrishailnk
Member
 
Registered: Mar 2006
Posts: 47

Rep: Reputation: 15
ifconfig


i am trying to have a connection betn two systems.
but on linux ifconfig is not showing no IP address
only loop back and mac address.

how to get the IP address here

and some help tosetup lan
 
Old 04-07-2006, 11:07 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
could you post the output of ifconfig???
 
Old 04-07-2006, 11:24 AM   #3
augurseer
Member
 
Registered: Feb 2006
Location: Canada
Distribution: OpenSuSe 10.2 (Home and Laptop) CentOS 5.0 (Server)
Posts: 171

Rep: Reputation: 30
a goofd way of seeing it network is loding is /etc/init.d/network restart


and see what is says, might give ytou a hint.
 
Old 04-07-2006, 11:29 AM   #4
jpk
Member
 
Registered: Apr 2006
Location: Copenhagen, Denmark
Distribution: FC5->Ubuntu 6.10->Ubuntu 7.04->Ubuntu 7.10->Ubuntu 8.04
Posts: 39

Rep: Reputation: 16
If you type ifconfig eth0 and get some thing like :

eth0 Link encap:Ethernet HWaddr 00:12:3F:E4:58:05
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:19

it means, that the inteface is down (you may want to use ifup), Probably the best way for you to setup LAN is to use system-config-network, where you can set IP, subnetmask and DNS

Last edited by jpk; 04-07-2006 at 11:31 AM.
 
Old 04-07-2006, 11:37 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by jpk
If you type ifconfig eth0 and get some thing like :

eth0 Link encap:Ethernet HWaddr 00:12:3F:E4:58:05
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:19

it means, that the inteface is down (you may want to use ifup), Probably the best way for you to setup LAN is to use system-config-network, where you can set IP, subnetmask and DNS
i don't think the interface shows-up with ifconfig if it's down...

in your example, the interface is up, but doesn't have an IP assigned...

in such a case, you'd just need to do something like:
Code:
ifconfig eth0 inet 192.168.1.1 netmask 255.255.255.0
when you set your configuration (using whatever method) you are basically just telling the system to do this at startup...
 
Old 04-07-2006, 11:45 AM   #6
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Quote:
Originally Posted by jpk
Probably the best way for you to setup LAN is to use system-config-network, where you can set IP, subnetmask and DNS
As far as I know, system-config-network is a Red Hat only tool.
 
Old 04-07-2006, 11:50 AM   #7
jpk
Member
 
Registered: Apr 2006
Location: Copenhagen, Denmark
Distribution: FC5->Ubuntu 6.10->Ubuntu 7.04->Ubuntu 7.10->Ubuntu 8.04
Posts: 39

Rep: Reputation: 16
yep, I use FC, but you can find a coresponding tool in any (almost) distro Anyway, I think the question is answered?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 08:58 AM
Where is ifconfig rutski89 Slackware 4 03-03-2005 01:57 PM
ifconfig Melissa22 Linux - Newbie 3 02-25-2004 11:22 PM
Ifconfig ! mesta Linux - Software 2 02-04-2003 10:18 AM
ifconfig Astro Slackware 6 01-08-2003 05:30 PM

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

All times are GMT -5. The time now is 04:55 AM.

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