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
  #1 (permalink)  
Old 12-21-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Openbsd as gateway Problem

Hello all expert network administrator, i truly new to networking. Please help me in this problem. /etc/hostname.rl1(Wired Internal interface) inet 10.0.0.1 255.255.255.0 none
/etc/hostname.ral0 : inet 10.0.1.1 255.255.255.0 and others option as well.

/etc/dhcpd.conf : 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 ;}}

output of ifconfig -a | less :
rl0 : inet: 192.168.1.3 netmask:0xffffff00 broadcast:192.168.1.255
rl1: No ip address becuase i didn't plugin cable
ral0: 10.0.1.1 netmask:0xffffff00 broadcast:10.0.1.255

Output of netstat -r | less :

Destination Gateway Flags Refs Use MTU Interface
default 219.93.218.177 UGS 11 618516 - tun0
10.0.1/24 link#3 UC 0 82 - ral0
localhost localhost UH 0 82 33224 lo0
192.168.1/24 link#1 UC 1 0 - rl0
192.168.1.1 00:30:0a:93:b0:58 UHLc 1 33 - rl0
219.93.218.177 103.17748.60 UH 1 0 1492 tun0
I really run out of idea . PLease help me. Thanks for your help. Your help is greatly appreciated by me and others.

Last edited by Peter_APIIT; 12-21-2007 at 10:24 PM.
Forum Sponsor
  #2 (permalink)  
Old 12-21-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Guy, you seriously need to parse better, that reads like a damned mess.

Cables have absolutely nothing to do with an interface having an IP address, so the problem lies not in your original assumption.

Take a look in your dmesg and see if there are IRQ or rl1 related errors for one, but also attempt to manually set the IP.
  #3 (permalink)  
Old 12-21-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
If it's any help I use a NetBSD as my gateway, I have two RealTek 8139 cards, as rtk0 and rtk1,

my rtk0 is on the same subnet as my ADSL router

my rtk1 is on my internal subnet

consider each subnet separately, what address and subnets do they need. Confirm the connectivity on each subnet separately.

Next, sort out routing, I enable IP routing and set my default gateway to point to the ADSL router.

Then, if you wish, sort out a local DNS server on the gateway.

And finally add a DHCPD server to provide local IP addresses on your internal subnet for DHCP enabled machines.
  #4 (permalink)  
Old 12-21-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Any other advises ?
  #5 (permalink)  
Old 12-21-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Peter_APIIT View Post
I really run out of idea . PLease help me. Thanks for your help. Your help is greatly appreciated by me and others.
I have absolutely no idea what your problem is, I've posted a sensible step by step approach to setting up a gateway. If you follow the process then perhaps we can solve the problem by getting each stage to work, but at the moment you've just sent us a mess of unintelligable information.
  #6 (permalink)  
Old 12-21-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Angry

Problem : My wired canot get any address from dhcpd server and my wireless connection can get address but cannot ping my gateway which is 10.0.0.10.

My wired interface even cannot get any i address from dhcp server even when i plugin the wired.
  #7 (permalink)  
Old 12-21-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Peter_APIIT View Post
Problem : My wired canot get any address from dhcpd server
what happens if you use ifconfig to explicitly configure it as a static IP address with the appropriate netmask?

Quote:
Originally Posted by Peter_APIIT View Post
and my wireless connection can get address but cannot ping my gateway which is 10.0.0.10.
What network is your gateway on because it is not the same as your wireless if that is
Quote:
ral0: 10.0.1.1 netmask:0xffffff00 broadcast:10.0.1.255
  #8 (permalink)  
Old 12-22-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl 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.
  #9 (permalink)  
Old 12-22-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl 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.
  #15 (permalink)  
Old 12-22-2007
Banned
 

Join Date: Sep 2007
Posts: 56
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
After i connect to my openbsd router, i cannot ping the gateway neither nor wired or wireless.
I don't know what happen. My /etc/ppp/ppp.conf consists of add! default HISADDR.
Shoudl i change my rl1 to another subnet ? Thanks
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m arg list too long ascii eof autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait command copy/move folder in unix curses.h dead.letter export display find grep grep multiple lines grep or grep recursive grep unique inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime perl array length ping port read awk output into multiple variables replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix forum unix forums unix interview questions unix memory usage unix mtime unix simulator unix.com vi tab