LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-17-2005, 01:41 PM   #1
punker
LQ Newbie
 
Registered: Jul 2003
Location: anywhere but here
Distribution: slackware 10
Posts: 23

Rep: Reputation: 15
ip config


which comman i use to configure the ip and the mask in slak 10
to make a net with a Windows xp pc????

thanx a lot
 
Old 04-17-2005, 01:46 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
The command is ifconfig - read man ifconfig to see the options.
 
Old 04-17-2005, 03:19 PM   #3
punker
LQ Newbie
 
Registered: Jul 2003
Location: anywhere but here
Distribution: slackware 10
Posts: 23

Original Poster
Rep: Reputation: 15
thanx man
 
Old 04-17-2005, 03:48 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Re: ip config

Quote:
Originally posted by punker
which comman i use to configure the ip and the mask in slak 10
to make a net with a Windows xp pc????

thanx a lot
to make net(network with windows) u need to configure samba server

regards
 
Old 04-17-2005, 04:06 PM   #5
punker
LQ Newbie
 
Registered: Jul 2003
Location: anywhere but here
Distribution: slackware 10
Posts: 23

Original Poster
Rep: Reputation: 15
a good tutorial???

i configure the ifconfig
when i ping shows this

root@darkstar:/etc/samba# ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.

--- 192.168.0.2 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4011ms

its okay??

the configuration of samba, how is it??

thanx a lot
 
Old 04-17-2005, 04:28 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
what do u get when u run

/sbin/ifconfig

post that here

regards
 
Old 04-17-2005, 04:37 PM   #7
punker
LQ Newbie
 
Registered: Jul 2003
Location: anywhere but here
Distribution: slackware 10
Posts: 23

Original Poster
Rep: Reputation: 15
root@darkstar:~# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:7D:85:E9:8D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1967 errors:0 dropped:0 overruns:0 frame:0
TX packets:2051 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:786964 (768.5 Kb) TX bytes:258430 (252.3 Kb)
Interrupt:11 Base address:0x9000

eth1 Link encap:Ethernet HWaddr 00:0D:61:31:0FC
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5232 (5.1 Kb) TX bytes:6692 (6.5 Kb)
Interrupt:10 Base address:0x1000

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:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:328 (328.0 b) TX bytes:328 (328.0 b)

ppp0 Link encap:Point-to-Point Protocol
inet addr:168.226.174.107 P-t-P:200.51.241.251 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1811 errors:0 dropped:0 overruns:0 frame:0
TX packets:1895 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:737702 (720.4 Kb) TX bytes:207320 (202.4 Kb)
 
Old 04-17-2005, 04:49 PM   #8
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

Quote:
5 packets transmitted, 0 received, 100% packet loss, time 4011ms
That's not really ok ! You lost every packet, which means networking doesn't work.
doing a ping is one of the most basic network test. You've got to have 100% received if you want more complex things to work.

In the output of ifconfig, I can see you've 2 ethernet adapters. Are you sure that you connected the right one ?
You should check that :

1/ First of all : when you plug in an ethernet cable in an ethernet card you _MUST_ have a green LED that gets up. It's the link LED, it says whether your physical connexion is right or not.
If it's not green, then do you use a switch/hub ? if so you need straight ethernet cables. If not you need a roll-over cable.


2/ Try issuing the mii-tool command. It will tell you which NIC has link, ie which of eth0 or eth1 is connected to your other computer. But, mii-tool doesn't support every network card, don't care about answers like "SIOCGMIIPHY on 'eth1' failed: Operation not supported".

In your ifconfig -a output, I can see that it's eth1 that's configured... why not (usually people use their first device...but that's not a problem). So if mii-tool answers smtg like "eth1: no link", then you've got to connect your ethernet cable to the other card.
 
Old 04-17-2005, 05:03 PM   #9
punker
LQ Newbie
 
Registered: Jul 2003
Location: anywhere but here
Distribution: slackware 10
Posts: 23

Original Poster
Rep: Reputation: 15
well

i use the eth0 to my adsl connection
and the eth1 to my net

windows xp to windows xp works, means: no harware problem

the mii tool output

root@darkstar:~# mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
eth1: negotiated 100baseTx-FD flow-control, link ok

and tthats all

thanx for the help man
 
Old 04-17-2005, 11:31 PM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by punker
well

i use the eth0 to my adsl connection
and the eth1 to my net

windows xp to windows xp works, means: no harware problem

the mii tool output

root@darkstar:~# mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
eth1: negotiated 100baseTx-FD flow-control, link ok

and tthats all

thanx for the help man
u see that u do not have an ip address for eth0

so ned to assign an ip address to it

run
setup

and go to networking section and do accordingly

regards
 
Old 04-18-2005, 08:10 AM   #11
punker
LQ Newbie
 
Registered: Jul 2003
Location: anywhere but here
Distribution: slackware 10
Posts: 23

Original Poster
Rep: Reputation: 15
but the eth0 works

i use in my adsl conection

the problem is eth1
 
Old 04-18-2005, 08:23 AM   #12
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
well u see this
--------------
eth0 Link encap:Ethernet HWaddr 00:E0:7D:85:E9:8D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1967 errors:0 dropped:0 overruns:0 frame:0
TX packets:2051 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:786964 (768.5 Kb) TX bytes:258430 (252.3 Kb)
Interrupt:11 Base address:0x9000

eth1 Link encap:Ethernet HWaddr 00:0D:61:31:0FC
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5232 (5.1 Kb) TX bytes:6692 (6.5 Kb)
Interrupt:10 Base address:0x1000

--------------

there is not field like

inet addr:192.168.0.1 Bcast:192.168.0.255

in eth0 as u have in eth1

regards
 
  


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
Sendmail - Config for IP Block's & Config Issues Thom_Redhat Linux - Software 1 04-07-2006 01:29 PM
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 12:07 PM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 08:28 PM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM

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

All times are GMT -5. The time now is 11:32 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