Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-07-2006, 10:01 AM
|
#1
|
Member
Registered: Mar 2006
Posts: 47
Rep:
|
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
|
|
|
04-07-2006, 10:07 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
could you post the output of ifconfig???
|
|
|
04-07-2006, 10:24 AM
|
#3
|
Member
Registered: Feb 2006
Location: Canada
Distribution: OpenSuSe 10.2 (Home and Laptop) CentOS 5.0 (Server)
Posts: 171
Rep:
|
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.
|
|
|
04-07-2006, 10:29 AM
|
#4
|
Member
Registered: Apr 2006
Location: Copenhagen, Denmark
Distribution: FC5->Ubuntu 6.10->Ubuntu 7.04->Ubuntu 7.10->Ubuntu 8.04
Posts: 39
Rep:
|
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 10:31 AM.
|
|
|
04-07-2006, 10:37 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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...
|
|
|
04-07-2006, 10:45 AM
|
#6
|
Member
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900
Rep:
|
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.
|
|
|
04-07-2006, 10:50 AM
|
#7
|
Member
Registered: Apr 2006
Location: Copenhagen, Denmark
Distribution: FC5->Ubuntu 6.10->Ubuntu 7.04->Ubuntu 7.10->Ubuntu 8.04
Posts: 39
Rep:
|
yep, I use FC, but you can find a coresponding tool in any (almost) distro  Anyway, I think the question is answered?
|
|
|
All times are GMT -5. The time now is 06:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|