LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-23-2003, 12:32 PM   #1
Petertje
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Rep: Reputation: 0
Newbie needs help with network(intranet)


hello all i'm new here so.... newbie :-)


i installed yesterday mandrake 9.0 on my server. Only i got 1 problem:

lan wont work. Linux detects network card [onboard] good. I followed the connection wizard. I give the machine a static ip 192.168.1.120 subnetmask: 255.255.255.0 gateway:192.168.1.1 hostname: server

i have installed a firewall to when i installed mandrake at the beginning-->> maby thats the prob?


and i try to connect but it wont work:

e-tech router: rtbr03


motherboard: elitegroup K7VTA3 5.0 ATX

can some1 pls help me


Can you ping any host on your network?
i cant

What's the output of ifconfig -a:
eth0 link encap: ethernet Hwaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.1.120 Bcast: 192.168.1.255 Mask:255.255.255.0
Up BRAODCAST RUNNING MULTICAST MTU:1500 Metric: 1

RC Packets:0 errors:0 dropped:350 overruns:0 frame:0
TX packets:0 errors:85 dropped:0 overruns: 0 carrier:0

Collosions:0 txqeuuelen:100
RX bytes:0 (0.0 b) TX bytes (0.0 b)
Interrupt:16 Base address:0xe800

lo Link encap:local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
Interrupt:16 Base address:0xe800
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:390 errors:0 dropped:0 overruns:0 frame:0
TX packets:309 errors:0 dropped:0 overruns:0 frame:0 carrier:0

collisions:0 txqeueulen:0
RX bytes:34926 (34.1 kb) TX bytes:34926 (34.1 kb)


What's the output of netstat -rn

Kernel Ip routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 40 0 0 eth0

Last edited by Petertje; 10-23-2003 at 12:34 PM.
 
Old 10-23-2003, 12:59 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
switch off the firewall and try again, I am pretty sure it is a matter of firewall
 
Old 10-23-2003, 02:04 PM   #3
Petertje
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
how can i turn the firewall of in mandrake?
 
Old 10-23-2003, 03:25 PM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
I don't know Mandrake distro. If it uses SysV scripting model you should have a script in /etc/rc.d/init.d/ directory named for instance 'firewall' or similarly. Run it as root with parameter 'stop'.
 
Old 10-23-2003, 03:58 PM   #5
Petertje
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
i cant find it .......
but a firewall stops the traffic that come in not the traffic what goes out right?
 
Old 10-23-2003, 04:32 PM   #6
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Post

Greetings!


Well, a good firewall should restrict outgoing traffic as well as inbound. I am not sure if this is the case with Mandrake however.

If you cannot find your firewall init script but want to know if the firewall is the cause of your problem, you can do the following for a quick and dirty solution:
As root start a text editor and enter the following lines:
Code:
echo Flushing firewall rules...
iptables -F
iptables -X
echo Setting default policies to ACCEPT...
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
echo done.
Save this file, for example as 'flush-firewall'. Then issue
chmod 700 flush-firewall
to make it executable. Now you can run the script with
./flush-firewall

This will disable any packet filtering, in other words it will disable any firewalling on your machine. Now you can try to ping your router or other hosts and see if it works. If not, the problem is not (or not only) your firewall.

But remember, this is a really dirty solution, better turn your firewall up again as soon as possible. Also I strongly suggest that you read the Packet filtering HOWTO, the iptables HOWTO as well as the manual page to iptables (type 'man iptables' without the quotes) and try building your own firewall instead of using the one your distro ships.


Good luck!
 
Old 10-23-2003, 04:46 PM   #7
Petertje
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
thank you i will try it
 
Old 10-23-2003, 04:54 PM   #8
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Quote:
Originally posted by Petertje
but a firewall stops the traffic that come in not the traffic what goes out right?
depends on the firewall rules...
BTW: with the tcp the cases of one-way traffic are very seldom...

And use gundelgauk's advice for cleaning firewall.
 
Old 10-24-2003, 06:55 AM   #9
Petertje
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
i removed the firewall totaly now i will install it when the network works :-)
 
Old 10-24-2003, 12:03 PM   #10
Petertje
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
i bought a new network card e-tech with realtek 8139 chipset but it still wont work not with dhcp or with static pls help!
 
  


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
Network help for a newbie! loserpunk603 Linux - Networking 4 08-09-2004 01:00 PM
What makes an intranet an intranet? pembo13 Linux - Networking 3 06-21-2004 09:20 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 10:02 PM
Newbie - X over network log Linux - Networking 7 02-20-2003 03:34 AM
Data errors on intranet network J_Szucs Linux - Networking 1 08-12-2002 04:30 PM

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

All times are GMT -5. The time now is 08:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration