LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2006, 06:16 PM   #16
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30

Okay, I used dhcp but I do not see any IPs in ifconfig except the internal IP and the mask. The broadcast too, but netconfig doesn't mention that.

Oh and it's a Toshiba router.

Last edited by Zeno McDohl; 01-24-2006 at 06:19 PM.
 
Old 01-24-2006, 06:25 PM   #17
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
netconfig [OPTION...]
--netmask=STRING Netmask


Your router ip is 192.168.100.1 and not 192.168.10.1?
 
Old 01-24-2006, 06:27 PM   #18
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
Yes, 100 and not 10. And netconfig is a GUI and doesn't take arguments. Typing netconfig starts it.
 
Old 01-24-2006, 06:37 PM   #19
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
hmm, i dunno then. I've never used netconfig. I would just edit the text files personally. It's a lot easier and quicker.

this is from
http://www.slackbasics.org/html-sing...s.html#AEN3563


Interfaces can be configured in the /etc/rc.d/rc.inet1.conf file. You can simply read the comments, and fill in the required information. For example:

# Config information for eth0:
IPADDR[0]="192.168.1.1"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

In this example the IP address 192.168.1.1 with the 255.255.255.0 netmask is assigned to the first ethernet interface (eth0). If you are using a DHCP server you can change the USE_DHCP="" line to USE_DHP[n]="yes" (swap "n" with the interface number). Other variables, except DHCP_HOSTNAME are ignored when using DHCP. For example:

IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""

The same applies to other interfaces. You can activate the settings by rebooting the system or by executing /etc/rc.d/rc.inet1. It is also possible to reconfigure only one interface with /etc/rc.d/rc.inet1 ethX_restart, in which ethX should be replaced by the name of the interface that you would like to reconfigure.


The current setup above does not use dhcp...hence the dhcp[0]=""
 
Old 01-24-2006, 06:43 PM   #20
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Quote:
I know I'm using a valid IP. The gateway is my routers IP? I http to 192.168.100.1 to access my router setup, is that the routers IP? If so I've tried it. I still get "unknown host".
That explains why you cant get to your router...if that is the ip then you would get the login screen If it is setup to access securely you may need to use https(this is the case for my routers).


Quote:
It's much easier and faster to edit resolv.conf
Much agreed bosewicht.

Last edited by lord-fu; 01-24-2006 at 06:45 PM.
 
  


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
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Error in make bash with static-link Kdr Kane Programming 7 02-25-2006 12:53 AM
Binutils Pass 1 error make LDFLAGS="-all-static" Phyrexicaid Linux From Scratch 5 08-25-2005 10:43 AM
make: *** [insmod.static] Error 1 _InTeNsDoWn_ Linux From Scratch 1 08-09-2005 01:47 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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