LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-16-2004, 03:05 PM   #1
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Rep: Reputation: 18
Exclamation Networking command question


hi....

I'm using slackware 10...

My questions:

1. my /etc/sysconfig/ when missing......... therefore i can't config the network and system.......

2. deleting gateway route path..... "route del gw 192.168.0.2" the problem is after entered the command it hang or do nothing...... so i have to press crtl + c


Thanks

 
Old 11-16-2004, 03:11 PM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
it ain't missing... you're in slack now, not RH/FC... slack has being the 'most UNIX like' as a project goal.

not sure about what you need...
 
Old 11-16-2004, 03:13 PM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
I do know there's a sysconfig in /etc/X11
as for network... you can just use netconfig
 
Old 11-16-2004, 04:35 PM   #4
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
learn redhat learn redhat, learn slackware learn linux
 
Old 11-16-2004, 11:44 PM   #5
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
or learn slackware learn unix, i figgure Pat would prefer you say...

perhaps learn slack, learn *nix
 
Old 11-17-2004, 01:35 AM   #6
shreev
Member
 
Registered: Apr 2003
Location: India
Distribution: Slackware 10
Posts: 37

Rep: Reputation: 15
Lightbulb

Hi,
Yeah, slack is very different from redhat, etc - I'd definitely prefer the slack/unix way of doing things... much cleaner and simpler if u ask me..

Coming to your question...

Configure ur network by editing /etc/rc.d/rc.inet1.conf .. And then stop and start ur network interface by

$> /etc/rc.d/rc.inet1 stop
$> /etc/rc.d/rc.inet1 start

HTH

 
Old 11-17-2004, 03:35 AM   #7
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
since...... Slackware is different form RH...... so where can i find some infoamation of it's structure?
 
Old 11-17-2004, 03:48 AM   #8
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
btw, why is route del gw 192.168.0.2 kinda of not working?
 
Old 11-17-2004, 04:01 AM   #9
shreev
Member
 
Registered: Apr 2003
Location: India
Distribution: Slackware 10
Posts: 37

Rep: Reputation: 15
Dunno about the 'route' thingy, but general info on slack's structure and stuff can probably be got from(if u haven't seen these already) :

http://www.slackware.com/config/ , and
http://www.slackware.com/book


These are probably not extensive, but are good starts.. Also this forum is a good resource, I've found it to be one of the best that I've come across - the people are very helpful, and I've found answers to most of my queries by just searching the older posts...


HTH
 
Old 11-17-2004, 05:08 AM   #10
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Maybe because the route was set with the addition of 'default'. Try
Code:
route del default gw 192.168.0.2
and see what happens then.
 
Old 11-17-2004, 07:53 AM   #11
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
route del default gw 192.168.0.2


same it do nothing........kind like hang there..... os i have to use ctrl + c to terminate it
 
Old 11-17-2004, 07:58 AM   #12
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Could you post the output of :
Code:
 ifconfig -a
route -n
Maybe that will give a clue what's going wrong.
 
Old 11-17-2004, 10:56 AM   #13
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
ifconfig -a:
root@slackware:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:05:5D:42:A9:0C
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:670 errors:0 dropped:0 overruns:0 frame:0
TX packets:784 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:322963 (315.3 Kb) TX bytes:111747 (109.1 Kb)
Interrupt:10 Base address:0xf00

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

route -n:
root@slackware:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref UseIface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 lo
0.0.0.0 192.168.0.2 0.0.0.0 UG 1 0 eth0
 
Old 11-17-2004, 12:17 PM   #14
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
You've got packets coming and going by the looks of it. If your using DHCP (using a router perhaps?) all you really need to do is edit /etc/rc.d/rc.inet1.conf, not /etc/rc.d/rc.inet1... The only thing you should need to add in there is the information for eth0.. So it looks like this:

Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
Just tell it to use DHCP and your router will do the rest. If your on a static address, just fill out the other info and put 'no' for DHCP, then jump down to the bottom of the file and enter your Gateway Address as well.... I don't know how RH does it but it's very simple in Slak... Even if you do use DHCP, you can still tell it 'no' and statically set your info in this file....

You would still call on /etc/rc.d/rc.inet1 to start and stop as shreev suggests...
 
Old 11-17-2004, 12:32 PM   #15
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
This is a logical problem. The ip of the gateway should be a different ipnumber to the one(s) used on the machine where you want to set the gateway. Normally it would be the ipnumber of whatever provides a connection to the outside world.
 
  


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
networking question wozzle Linux - Networking 5 10-28-2004 08:42 AM
Networking question??? karan101 Linux - Security 3 10-24-2004 02:53 PM
Networking command line/user account questions daburz Linux - Networking 1 06-20-2004 09:11 AM
networking question wslyhbb Linux - Networking 5 12-14-2003 11:30 AM
Networking Question MgF Linux - Networking 1 07-21-2003 03:27 PM

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

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