The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
BSD Release: OpenBSD 4.3 iBot Software Releases - RSS News 0 04-30-2008 08:20 PM
BSD Release: OpenBSD 4.3 iBot Software Releases - RSS News 0 04-30-2008 06:20 PM
Trying to get into OpenBSD deckard BSD 6 03-15-2005 04:43 PM
OpenBSD : mount problem fnoyan BSD 1 09-18-2004 09:26 AM
please help with openbsd 2.9 Blunt_Killer UNIX for Dummies Questions & Answers 11 06-24-2001 07:15 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #8 (permalink)  
Old 12-22-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Stumble this Post!
Angry

I really a stupid peson.

Quote:
what happens if you use ifconfig to explicitly configure it as a static IP address with the appropriate netmask?
I odn't know use ifconfig to manually assign. I have to read up the man page. This may take few hour. can u tell me how to do that ?

Quote:
What network is your gateway on because it is not the same as your wireless if that is
I don;t understand what u said here.


Quote:
share-network local { subnet 10.0.0.0 netmask 255.255.255.0 options routers 10.0.0.10; range 10.0.0.25 10.0.0.35;}}
share-network wireless { subnet 10.0.1.0 netmask 255.255.255.0 option routers 10.0.0.10 range 10.0.1.5 10.0.1.7 ;}}
They all said if you have multiple interface, then u different subnet.

Therefore, i just create one gateway for wired and wireless.

Why linksys router only need on egateway address when have wired and wireless ?


I really a stupid person.

Thanks for your help.

Your help is greatly appreciated by me and others.
Forum Sponsor
  #9 (permalink)  
Old 12-22-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
First of all, plan your network.

Make a table as follows....

Code:
interface   network    netmask    broadcast    address
and under each write the

(a) name of the interface, eg rt0 etc

(b) the network it will be connected to, eg 192.168.1.0/24

(c) the netmask it will use, eg 255.255.255.0

(d) the broadcast address it will use, eg 192.168.1.255

(e) the address this interface will have on this network, eg 192.168.1.1

do this for every interface. If the interface is to be configured by DHCP then write DHCP in the address column.

Once you have done that determine the address of your default route and which interface is connected to that address. If the network/netmask don't tally with the gateway you will not talk to it.

To configure a static address use

ifconfig rt0 inet 192.168.1.1 netmask 255.255.255.0

read the following....

man ifconfig
man ifconfig.if
man mygate
man resolv.conf
  #10 (permalink)  
Old 12-22-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Stumble this Post!
Do u ask me to change my setting to class C address ? I think i don't need /etc/mygate because my rl0(external interface) is configured dhcp by my ISP.
I have hostname.rl1 and hostnameral0 for wired and wireless connection.
What i need to do in order to troubleshoot the problem ?
By the way , thanks for oyur help. You are really a helpful gu becuase no one willing to help me out except you. A billion thanks for your help.
  #11 (permalink)  
Old 12-22-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
Quote:
Originally Posted by Peter_APIIT View Post
Do u ask me to change my setting to class C address ? I think i don't need /etc/mygate because my rl0(external interface) is configured dhcp by my ISP.
Okay, and is it?

What happens if you type "route show 0.0.0.0".

For example my router is configured on it's outside leg by the ISP, but the inside subnet is all DHCP that it manages. I use a static IP address within that subnet. The router then does NAT onto the outside world. I have mygate (default route) point at the IP address of the router.

Quote:
Originally Posted by Peter_APIIT View Post
I have hostname.rl1 and hostname.ral0 for wired and wireless connection.
Are these devices getting configured?

type "ifconfig -a"

In terms of where to spend the effort right now, it is get the rl0 interface talking to your router.

Quick question, are you absolutely sure you have rl0 and rl1 the right way round?
  #12 (permalink)  
Old 12-22-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Stumble this Post!
I pretty sure tha rl0(External interface) because i can connect to internet through this interface.
rl1(Internal interface) to internal LAN. My rl1 is never configure and doesn't have any address. The others have address such as rl0, ral0 and tun0.
Route show :
Destination Gateway Flags Refs Use Mtu Interface
default 219.93.218.177 UGS 2 2083 - tun0
localhost localhost UH 0 2 33224 lo0
192.168.124 link#1 UC 1 0 - rl0
192.168.1.1 Hardwrae add UHLc 0 18 - rl0
192.168.2/24 link#3 UC 1 0 - ral0
192.168.2.3 Hardware add UH 1 0 1492 tun0
  #13 (permalink)  
Old 12-22-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Stumble this Post!
After i have manually configured rl1 by ifconfig inet 192.168.1.2 netmask 255.255.255.0 . I can get the ip address at boot time.
Output of ifconfig -a | less : rl0(External interface) 192.168.1.2 /24
rl1 - 192.168.1.2 /24 ral0 : 192.168.2.2 /24
Does my rl0 will crash with rl1 ? /etc/hostname.rl1 inet 192.168.1.2 /24 NONE
/etc/hostname.ral0 inet 192.168.2.2 /24 NONE media autoselect \mediaopt hostap
/etc/dhcpd.conf subnet-network LOCAL-NET { subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; I worried rl0 will crash with rl1. Therefore, i change it to 182.168.1.5 .
range 192.168.1.3 192.168.1.5;}}
shared-network WIRELESS-NET { subnet 192.168.2.0 netmask 255.255.255.0 { optio routers 192.168.2.1; range 192.168.2.3 192.168.2.5; }}

Last edited by Peter_APIIT; 12-22-2007 at 09:04 PM.
  #14 (permalink)  
Old 12-22-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
Quote:
Originally Posted by Peter_APIIT View Post
Does my rl0 will crash with rl1 ?
My understanding is your router is on the same subnet as rl0, what is the address of your router, this should be the same as your default gateway or "mygate".

Then you rl0 subnet address range must include this gateway address.

So let's just sort out rl0, make sure you can ping the router and the router replies. The next step is confirm you can ping an address beyond the router.

You may want to set up /etc/resolv.conf so that either

(a) you use a name server beyond the router

(b) you use the router as the nameserver itself as long as it does DNS proxy.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0