LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-06-2005, 10:48 AM   #1
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Rep: Reputation: 30
TCP/IP set-up?


After searching for a couple of days now I can't find an answer.

I have Debian Sarge and after about six months I went ahead and installed KDE, because I kept being told how much easier it would make my work with Debian as a Web Server. Was that ever off-the-mark!

(I did not set-up the Web Server and DNS for this machine. A friend did it over the Internet and I do not have a clue of what he actually did.)

After installing KDE I no longer have Internet access and KDE acts like it is on its own computer, completely unaware of any other application. I do not know what it did to my iptables.

KDE can not find Samba, which is loaded and running. KDE will not even allow me to set the System Clock to EDT. It keeps automatically adjusting it either plus or minus four hours from the actual time I set in. KDE does not have anything dealing with Network Connections listed as available in any of the Menus, local KDE applications only with no networking capabilities.

So I exited KDE and went to the Command Line. I tried to look at the iptables to see what configuration was set-up and all I can find are instructions on how to do single command line entries, to create new chains. Nothing appears to be available to let me even see what the existing IP assignments are, using the "iptables -L" command only returns blank/default information, with no IPs listed.

So, where do I find out what IPs I have for the Default IP, SubNet Mask, Gateway and DNS? And, how do I correct them?

In MS all I have to do is go to my Network Connections Properties and in less than 30 seconds it is done.
 
Old 10-06-2005, 11:06 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I don't run Debian, but might can help.

Issue "/sbin/ifconfig -a" to see your interfaces.
Issue "route -n" to get the table.

I've been trying KDE for a couple weeks, so that
I can setup computers I build for those migrating
from Windows with a "point-and-click" environment.
I gave up yesterday. KDE has a mind of it's own,
and changes things indiscriminately as you say.
I'm back in Fluxbox, happy, and not plagued by
the "bug" that is KDE. One thing I can say for it,
though ... it reminds me of Micro$loth Windoze.
Lots of features, lots of buggy behavior, very
few people with knowledge to fix it.

Quoting my friend who's a Linux expert, "every
developer is guilty of that ... adding functionality
is so much more fun than writing documentation
or fixing bugs."
 
Old 10-06-2005, 11:38 AM   #3
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
IP Routing

Thanks,

The route -n shows me the following table:

Kernel IP routing table
Destination-/-Gateway-/-Genmask-/-Flags-/-Metric-/-Ref-/-Use-/-Iface
192.168.2.0-/-0.0.0.0-/-255.255.255.0-/-U-/-0-/-0-/-0-/-eth0
0.0.0.0-/-192.168.2.1-/-0.0.0.0-/-UG-/-0-/-0-/-0-/-eth0

Sorry, I couldn't get the table to display correctly, so I used the "-/-" for separation. The Forum deleted the spaces I had used to align the fields.

How do I correct the error with the Gateway? It is the wrong IP Address.

I do believe I'll be uninstalling the KDE. I am having enough problems just trying to learn Linux without trying to use buggy software.

Last edited by AndeAnderson; 10-06-2005 at 11:43 AM.
 
Old 10-06-2005, 11:55 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I used Debian for a few months in 2003 before switching to Slackware,
so I hope this isn't "Slack specific," but I would issue as root:
ifconfig eth0 <IP> netmask 255.255.255.0
route add default gw <your_router_or_gateway_IP> dev eth0
and pray for a link.

This is what my "route -n" output looks like:
Code:
bruce@silas:~$ /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 ath0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 ath0
I'm online with the ath0 wireless, and have my lappy and
this newly built PC on a LAN, but not WAN to the lappy.
These are my IP addresses:
Code:
bruce@silas:~$ /sbin/ifconfig
ath0      Link encap:Ethernet  HWaddr <munged>
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:71276 errors:202493 dropped:0 overruns:0 frame:202493
          TX packets:66502 errors:132 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:200 
          RX bytes:93653616 (89.3 Mb)  TX bytes:5747262 (5.4 Mb)
          Interrupt:19 Memory:f8d60000-f8d70000 

eth0      Link encap:Ethernet  HWaddr <munged>
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:767 errors:0 dropped:0 overruns:0 frame:0
          TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:113364 (110.7 Kb)  TX bytes:29606 (28.9 Kb)
          Interrupt:20 Memory:fdd00000-0 

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:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1500 (1.4 Kb)  TX bytes:1500 (1.4 Kb)
The way to make that display format correctly is to use VB Code.
You can use the Code button above the input window when you
post, or put [*code*] before and [*/code*] after your text without
the asterisks, i.e.
[*code*]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:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1500 (1.4 Kb) TX bytes:1500 (1.4 Kb)[*/code*]

Quote:
Originally posted by AndeAnderson
I do believe I'll be uninstalling the KDE. I am having enough problems just trying to learn Linux without trying to use buggy software.
I'm with you there, brother. The "learning curve" is giving me a
nose bleed, but it beats that Micro$loth stuff all to pieces.
 
Old 10-06-2005, 12:34 PM   #5
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
eth0 IP?

Like all other good things in Linux and MS Error messages I have learned that what we call something, what the programmer calls it and what the guy who modifies it calls it are normally three different things.

Following your command line inputs I would type:

ifconfig eth0 192.168.2.0 netmask 255.255.255.0
route add default gw 192.168.2.2 dev eth0

and then Pray it works?

Do I then try to delete the existing Gateway IP which is wrong, or is it replaced by this command?

I've already crashed this thing so many times just trying to get a usable Linux installation, I try to be completely sure of what the instructions are. I haven't touched it since April when I had an overload of learning errors from the lack of proper Linux documentation and assistance.

Again, thanks for your help.

BTW: How did you get your IP table to look so nice in your reply?
 
Old 10-06-2005, 12:42 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If you're concerned about the results then issue "ifconfig eth0 down"
first.

I used the code that I wrote about in my other post.
 
Old 10-06-2005, 01:23 PM   #7
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Gateway corrected

Thanks,

The Gateway has been corrected. Now to search for the reason I don't have Internet access from the web server, all of my work stations do.
 
  


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
How to set TCP Timeout xenomage Linux - Networking 5 11-23-2009 04:08 PM
Cannot set LD_LIBRARY_PATH in .cshrc (able to set other env variables) senthilpr_in Linux - Newbie 4 02-26-2007 12:46 PM
Woody 3.0 Open Ports 1470/tcp/uaiact 1518/tcp/vpvd What for?How can I remove them? alexxxis Debian 5 07-05-2004 05:18 PM
Linux firewall, cant get on my machine (stupid me) set reject to any TCP protocol AlexW Linux - Security 3 06-10-2004 04:07 PM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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