Re: Network Question

2013-09-14 Thread Daniel Nang
Aloha,

Sounds like an interesting setup. Do you have one machine acting as a
gateway?


On Sat, Sep 14, 2013 at 2:28 AM, Al Plant n...@hdk5.net wrote:

 Eugene wrote:

 Hi Daniel,

 The easiest way is to check the LAN Config (or similar) page of the
 router. They usually allow one to specify fixed IP and hostname for the
 DHCP clients based on the MAC addresses.

 Best wishes
 Eugene

 -Original Message- From: Daniel Nang
 Sent: Thursday, September 12, 2013 11:16 PM
 To: Adam Vande More
 Cc: freebsd-questions@freebsd.org
 Subject: Re: Network Question

 That was easier than I thought. My initial approach already looked
 something like
 this, except that for the ip address I always put the machine's name as
 in:

 machine1# ssh u...@machine2.example.com

 which results in

 ssh: Could not resolve hostname machine2.example.com: hostname nor
 servname
 provided, or not known

 I think the problem here lies with the /etc/hosts file where machine1 and
 machine2 have
 to be registered respectively. The thing here is that the ip isn't static
 which makes
 this approach somewhat difficult to realize.

 Got it.

 Thanks.



 On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.com
 wrote:

  On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.com**
 wrote:

  Hello,

 I have two computers, both running FreeBSD, accessing the
 web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
 machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


 Both computers can access the internet with no problems.
 So far so good...

 My question is, if I can simultaneously have the computers access
 the net as in the given picture and also let them communicate with
 each other e.g. via ssh?



 machine1# ssh `ip of machine2`


 --
 Adam Vande More

  __**_
 #


 Aloha,

 For many years I have 8 Freebsd boxes behind a PF firewall on a static
 labeled lan. Only one public address feeds the lan.  All the boxes can work
 the internet and can ssh.

 I found that easier than dhcp.

 :)

 ~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
   + http://hawaiidakine.com + http://freebsdinfo.org +
   + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
email: n...@hdk5.net 
 All that's really worth doing is what we do for others.- Lewis Carrol


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-14 Thread Al Plant

Daniel Nang wrote:

Aloha,

Sounds like an interesting setup. Do you have one machine acting as a 
gateway?



On Sat, Sep 14, 2013 at 2:28 AM, Al Plant n...@hdk5.net 
mailto:n...@hdk5.net wrote:


Eugene wrote:

Hi Daniel,

The easiest way is to check the LAN Config (or similar) page of
the router. They usually allow one to specify fixed IP and
hostname for the DHCP clients based on the MAC addresses.

Best wishes
Eugene

-Original Message- From: Daniel Nang
Sent: Thursday, September 12, 2013 11:16 PM
To: Adam Vande More
Cc: freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org
Subject: Re: Network Question

That was easier than I thought. My initial approach already looked
something like
this, except that for the ip address I always put the machine's
name as in:

machine1# ssh u...@machine2.example.com
mailto:u...@machine2.example.com

which results in

ssh: Could not resolve hostname machine2.example.com
http://machine2.example.com: hostname nor servname
provided, or not known

I think the problem here lies with the /etc/hosts file where
machine1 and
machine2 have
to be registered respectively. The thing here is that the ip
isn't static
which makes
this approach somewhat difficult to realize.

Got it.

Thanks.



On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More
amvandem...@gmail.com mailto:amvandem...@gmail.comwrote:

On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang
daniel.nan...@gmail.com
mailto:daniel.nan...@gmail.com__wrote:

Hello,

I have two computers, both running FreeBSD, accessing the
web via DHCP from the router. The setup looks like this:


   Internet
|
|
|
machine1.example.com http://machine1.example.com ---
Router --- machine.2.example.com
http://machine.2.example.com
 - DHCP -  
 - DHCP -



Both computers can access the internet with no problems.
So far so good...

My question is, if I can simultaneously have the
computers access
the net as in the given picture and also let them
communicate with
each other e.g. via ssh?



machine1# ssh `ip of machine2`


-- 
Adam Vande More


_
#


Aloha,

For many years I have 8 Freebsd boxes behind a PF firewall on a
static labeled lan. Only one public address feeds the lan.  All the
boxes can work the internet and can ssh.

I found that easier than dhcp.

:)

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net mailto:n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol



Aloha,


I have a gateway separate on an old box running a Freesco floppy disk. I 
have many old boxes here and they still work.


A couple can run Up to FreeBSD 10. No gui needed as they are for 
firewall and servers and the like.


~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-13 Thread Frank Leonhardt

On 12/09/2013 20:16, Daniel Nang wrote:

That was easier than I thought. My initial approach already looked
something like
this, except that for the ip address I always put the machine's name as in:

machine1# ssh u...@machine2.example.com

which results in

ssh: Could not resolve hostname machine2.example.com: hostname nor servname
provided, or not known

I think the problem here lies with the /etc/hosts file where machine1 and
machine2 have
to be registered respectively. The thing here is that the ip isn't static
which makes
this approach somewhat difficult to realize.

Got it.

Thanks.



On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.comwrote:


On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote:


Hello,

I have two computers, both running FreeBSD, accessing the
web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


Both computers can access the internet with no problems.
So far so good...

My question is, if I can simultaneously have the computers access
the net as in the given picture and also let them communicate with
each other e.g. via ssh?



machine1# ssh `ip of machine2`


--
Adam Vande More


___



If you really only have two (or a very few machines) just give them 
static local IP addresses and add the host names to /etc/hosts on each 
box. Find out the address pool used by the DHCP server (presumably in 
the router) and choose your static addresses to avoid it.


If you use dynamic IP addresses (form DHCP) you may have some fun and 
games when it comes to security certificates.


Regards, Frank.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-13 Thread Al Plant

Eugene wrote:

Hi Daniel,

The easiest way is to check the LAN Config (or similar) page of the 
router. They usually allow one to specify fixed IP and hostname for the 
DHCP clients based on the MAC addresses.


Best wishes
Eugene

-Original Message- From: Daniel Nang
Sent: Thursday, September 12, 2013 11:16 PM
To: Adam Vande More
Cc: freebsd-questions@freebsd.org
Subject: Re: Network Question

That was easier than I thought. My initial approach already looked
something like
this, except that for the ip address I always put the machine's name as in:

machine1# ssh u...@machine2.example.com

which results in

ssh: Could not resolve hostname machine2.example.com: hostname nor servname
provided, or not known

I think the problem here lies with the /etc/hosts file where machine1 and
machine2 have
to be registered respectively. The thing here is that the ip isn't static
which makes
this approach somewhat difficult to realize.

Got it.

Thanks.



On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More 
amvandem...@gmail.comwrote:


On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang 
daniel.nan...@gmail.comwrote:



Hello,

I have two computers, both running FreeBSD, accessing the
web via DHCP from the router. The setup looks like this:


   Internet
|
|
|
machine1.example.com --- Router --- machine.2.example.com
 - DHCP -- DHCP -


Both computers can access the internet with no problems.
So far so good...

My question is, if I can simultaneously have the computers access
the net as in the given picture and also let them communicate with
each other e.g. via ssh?




machine1# ssh `ip of machine2`


--
Adam Vande More


___
#


Aloha,

For many years I have 8 Freebsd boxes behind a PF firewall on a static 
labeled lan. Only one public address feeds the lan.  All the boxes can 
work the internet and can ssh.


I found that easier than dhcp.

:)

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-13 Thread Eugene

Hi,

Yes, I have a similar setup at work (though currently migrating it to DHCP 
to accommodate mobile clients and simplify management). But I suppose OP 
would like to basically keep his the architecture intact =)


Best wishes
Eugene

-Original Message- 
From: Al Plant

Sent: Friday, September 13, 2013 10:28 PM
To: Eugene
Cc: freebsd-questions@freebsd.org ; Daniel Nang
Subject: Re: Network Question

Eugene wrote:

Hi Daniel,

The easiest way is to check the LAN Config (or similar) page of the 
router. They usually allow one to specify fixed IP and hostname for the 
DHCP clients based on the MAC addresses.




Aloha,

For many years I have 8 Freebsd boxes behind a PF firewall on a static
labeled lan. Only one public address feeds the lan.  All the boxes can
work the internet and can ssh.

I found that easier than dhcp.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Network Question

2013-09-12 Thread Daniel Nang
Hello,

I have two computers, both running FreeBSD, accessing the
web via DHCP from the router. The setup looks like this:


   Internet
|
|
|
machine1.example.com --- Router --- machine.2.example.com
 - DHCP -- DHCP -


Both computers can access the internet with no problems.
So far so good...

My question is, if I can simultaneously have the computers access
the net as in the given picture and also let them communicate with
each other e.g. via ssh?


Thanks

Daniel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Daniel Nang
Just read your mail. I will have to take some time, to look into what you
have
said, as I have not yet used the concepts that you spoke about.

Another solution would be to install a new network card into both computers
and assign static ip addresses to them, but I do not want to do that.

Daniel



On Fri, Sep 13, 2013 at 3:06 AM, Kurt Buff kurt.b...@gmail.com wrote:

 On Thu, Sep 12, 2013 at 11:51 AM, Adam Vande More amvandem...@gmail.com
 wrote:
  On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.com
 wrote:
 
  Hello,
 
  I have two computers, both running FreeBSD, accessing the
  web via DHCP from the router. The setup looks like this:
 
 
 Internet
  |
  |
  |
  machine1.example.com --- Router --- machine.2.example.com
   - DHCP -- DHCP -
 
 
  Both computers can access the internet with no problems.
  So far so good...
 
  My question is, if I can simultaneously have the computers access
  the net as in the given picture and also let them communicate with
  each other e.g. via ssh?
 
 
 
  machine1# ssh `ip of machine2`


 There's the rub. How do you determine the IP address of the other machine?

 DHCP, unless configured with reservations, doesn't guarantee IP
 addresses to remain the with machines that request addresses.

 So, there are two ways to solve this problem:

 o- As I mention above, use reservations in DHCP to tie IP addresses to
 MAC addresses - this is a fairly manual process, and doesn't scale
 beyond a few machines..

 o- Use a DNS/DHCP solution whereby DNS is dynamically updated with an
 IP address by the DHCP server when a machine leases an IP address to a
 machine. This requires some work up front, but then takes care of
 itself, so scales fairly well.

 Kurt
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Adam Vande More
On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote:

 Hello,

 I have two computers, both running FreeBSD, accessing the
 web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
 machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


 Both computers can access the internet with no problems.
 So far so good...

 My question is, if I can simultaneously have the computers access
 the net as in the given picture and also let them communicate with
 each other e.g. via ssh?



machine1# ssh `ip of machine2`


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Daniel Nang
That was easier than I thought. My initial approach already looked
something like
this, except that for the ip address I always put the machine's name as in:

machine1# ssh u...@machine2.example.com

which results in

ssh: Could not resolve hostname machine2.example.com: hostname nor servname
provided, or not known

I think the problem here lies with the /etc/hosts file where machine1 and
machine2 have
to be registered respectively. The thing here is that the ip isn't static
which makes
this approach somewhat difficult to realize.

Got it.

Thanks.



On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.comwrote:

 On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote:

 Hello,

 I have two computers, both running FreeBSD, accessing the
 web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
 machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


 Both computers can access the internet with no problems.
 So far so good...

 My question is, if I can simultaneously have the computers access
 the net as in the given picture and also let them communicate with
 each other e.g. via ssh?



 machine1# ssh `ip of machine2`


 --
 Adam Vande More

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Kurt Buff
On Thu, Sep 12, 2013 at 11:51 AM, Adam Vande More amvandem...@gmail.com wrote:
 On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote:

 Hello,

 I have two computers, both running FreeBSD, accessing the
 web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
 machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


 Both computers can access the internet with no problems.
 So far so good...

 My question is, if I can simultaneously have the computers access
 the net as in the given picture and also let them communicate with
 each other e.g. via ssh?



 machine1# ssh `ip of machine2`


There's the rub. How do you determine the IP address of the other machine?

DHCP, unless configured with reservations, doesn't guarantee IP
addresses to remain the with machines that request addresses.

So, there are two ways to solve this problem:

o- As I mention above, use reservations in DHCP to tie IP addresses to
MAC addresses - this is a fairly manual process, and doesn't scale
beyond a few machines..

o- Use a DNS/DHCP solution whereby DNS is dynamically updated with an
IP address by the DHCP server when a machine leases an IP address to a
machine. This requires some work up front, but then takes care of
itself, so scales fairly well.

Kurt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Adam Vande More
On Thu, Sep 12, 2013 at 2:06 PM, Kurt Buff kurt.b...@gmail.com wrote:


 There's the rub. How do you determine the IP address of the other machine?


Normally I look at /var/db/dhcpd/dhcpd.leases.  Pretty much all of the home
routers also have the information accessible on it's administration page.
Really depends on that exact setup as there are a number of ways.

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Eugene

Hi Daniel,

The easiest way is to check the LAN Config (or similar) page of the router. 
They usually allow one to specify fixed IP and hostname for the DHCP clients 
based on the MAC addresses.


Best wishes
Eugene

-Original Message- 
From: Daniel Nang

Sent: Thursday, September 12, 2013 11:16 PM
To: Adam Vande More
Cc: freebsd-questions@freebsd.org
Subject: Re: Network Question

That was easier than I thought. My initial approach already looked
something like
this, except that for the ip address I always put the machine's name as in:

machine1# ssh u...@machine2.example.com

which results in

ssh: Could not resolve hostname machine2.example.com: hostname nor servname
provided, or not known

I think the problem here lies with the /etc/hosts file where machine1 and
machine2 have
to be registered respectively. The thing here is that the ip isn't static
which makes
this approach somewhat difficult to realize.

Got it.

Thanks.



On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More 
amvandem...@gmail.comwrote:


On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang 
daniel.nan...@gmail.comwrote:



Hello,

I have two computers, both running FreeBSD, accessing the
web via DHCP from the router. The setup looks like this:


   Internet
|
|
|
machine1.example.com --- Router --- machine.2.example.com
 - DHCP -- DHCP -


Both computers can access the internet with no problems.
So far so good...

My question is, if I can simultaneously have the computers access
the net as in the given picture and also let them communicate with
each other e.g. via ssh?




machine1# ssh `ip of machine2`


--
Adam Vande More


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Qemu network question

2008-11-03 Thread Mario Lobo
Hi:

Please use a fixed font to see the diagram bellow:


   FBSD HOST(7.1-PRERELEASE)
  +-+
  |10.10.10.1   | 
 LAN -+- re0| 
  | | 
  |+-+  |
  +---++tap0 |  |  
  |  +++tap1 |  | 
  |  ||+-+  |  
  |  ||bridge0  |  (if_bridge)
  |  || 192.168.100.254 |  
  |  |+-+
  |  |
  |  |  QEMU GUEST 1 (linux Fedora core 5)
  |  |   +-+
  |  |   | |
  |  +---+ eth0| 
  |  | 192.168.100.1   | 
  |  | | 
  |  +-+ 
  | QEMU GUEST 2  (windows XP)
  |  +-+
  |  | |
  +--+--- realtek  | 
 | 192.168.100.2   | 
 | | 
 +-+ 

It's working like a charm ! 

I turned my FBSD desktop into a router/gateway, put pf to nat everything and 
set up an independent smb server on the host. Pings travel on any direction!. 
The guests have access to ALL the host's files and vice versa, BOTH guests 
have internet access and best of all, I can access the linux guest through an 
ssh shell and the windows guest through vncviewer, and, of course, the 2 
guests see each other ! Imagine how happy I am !

I tried this without turning my desktop into a gateway. The guests had 
internet access but the host was invisible to them and I got tired of trying 
to make qemu's -smb option work, so I adapted this a-bit radical approach I 
saw on a how-to for Sun OS I found on the net.

I'm really impressed with qemu performance !. I´ve compiled kernels, built 
RPMs and the reduction in performance from doing these things in a separate 
machine is really endurable.

My question is: If I don't put re0 into promiscous mode, all of this falls 
apart ! The network goes totally down for the host-guests, but the host 
retains its internet conectivity. I discovered that by chance! I was trying 
to find out what was happening with conectivity so I tried pinging the host 
from the linux guest. As soon as I started tcpdump on the host, the pings 
went through so I found out what I needed from there.

Is this normal or is there something wrong with my NIC? setup?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd 6.0 network question and throughput

2006-01-10 Thread ann kok
Hi all

I use the ipref software (andrew P suggests) to test
the freebsd 6.0 network throughput

both the server and client are running freebsd6.0 with
intel giga em0, polling 

I did test it in switch or cross-over cable to connect
each other

it seems to have limit to 390M

Could you teach me how to max the network throught?

I use the freebsd as router

I couldn't put in the production to test it

Thank you for your help




ipref -c ipaddress
client connecting
TCP window size: 65.0 KByte (default)
[3] 0.0-10 sec390 MBytes 328
MBytes



ipref -s
Server listening on TCP port 5001
TCP window size: 64.0 KBytes (default)
[4] 0.0-10 sec390 MBytes  328
MBytes   

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


dumb network question

2005-03-03 Thread J.D. Bronson
Ok. I admit it. I cant figure what I am missing.
I have 2 NICs in this machine.
NIC 1 is a LAN NIC and static IP. - that I can figure out.
NIC 2 needs to be DHCP (from cable modem).
and I want the default router to be the DHCP cable
modem gateway IP (passed from dhclient).
What do I need to setup in /etc/rc.conf
to make this happen?
Thanks and sorry for the dumb question.

--
J.D. Bronson
Aurora Health Care // Information Services // Milwaukee, WI USA
Office: 414.978.8282 // Email: [EMAIL PROTECTED] // Pager: 414.314.8282
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dumb network question

2005-03-03 Thread Chad Morland
ifconfig_nic2=DHCP

man rc.conf

-CM


On Thu, 03 Mar 2005 14:05:07 -0600, J.D. Bronson [EMAIL PROTECTED] wrote:
 Ok. I admit it. I cant figure what I am missing.
 
 I have 2 NICs in this machine.
 
 NIC 1 is a LAN NIC and static IP. - that I can figure out.
 
 NIC 2 needs to be DHCP (from cable modem).
 and I want the default router to be the DHCP cable
 modem gateway IP (passed from dhclient).
 
 What do I need to setup in /etc/rc.conf
 to make this happen?
 
 Thanks and sorry for the dumb question.
 
 --
 J.D. Bronson
 Aurora Health Care // Information Services // Milwaukee, WI USA
 Office: 414.978.8282 // Email: [EMAIL PROTECTED] // Pager: 414.314.8282
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dumb network question

2005-03-03 Thread Thomas Foster
hostname=my.hostname.whatever
ifconfig_NIC1=inet a.b.c.d netmask 255.255.255.0
ifconfig_NIC2=DHCP
gateway_enable=YES
replace NIC1 and NIC2 with the interface names.. and of course.. a.b.c.d 
with the internal IP address..

be sure theres no gateway defined for the internal interface.. and if you 
need help setting up a firewall/router, be sure and check out :

http://www.section6.net/help.php
Hope this helps
T
- Original Message - 
From: J.D. Bronson [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Thursday, March 03, 2005 12:05 PM
Subject: dumb network question


Ok. I admit it. I cant figure what I am missing.
I have 2 NICs in this machine.
NIC 1 is a LAN NIC and static IP. - that I can figure out.
NIC 2 needs to be DHCP (from cable modem).
and I want the default router to be the DHCP cable
modem gateway IP (passed from dhclient).
What do I need to setup in /etc/rc.conf
to make this happen?
Thanks and sorry for the dumb question.

--
J.D. Bronson
Aurora Health Care // Information Services // Milwaukee, WI USA
Office: 414.978.8282 // Email: [EMAIL PROTECTED] // Pager: 414.314.8282
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dumb network question

2005-03-03 Thread J.D. Bronson
At 02:10 PM 3/3/2005, Thomas Foster wrote:
hostname=my.hostname.whatever
ifconfig_NIC1=inet a.b.c.d netmask 255.255.255.0
ifconfig_NIC2=DHCP
gateway_enable=YES
replace NIC1 and NIC2 with the interface names.. and of course.. a.b.c.d 
with the internal IP address..

be sure theres no gateway defined for the internal interface.. and if you 
need help setting up a firewall/router, be sure and check out :

http://www.section6.net/help.php
Hope this helps
T
Yea...this is great. One last question guys...
for the nic that I have using for PPP...do I need anything special?
(like in OpenBSD I have to toss 'up' in hostname.fxp0 for example)
or does it -just- work.
thanks!

--
J.D. Bronson
Aurora Health Care // Information Services // Milwaukee, WI USA
Office: 414.978.8282 // Email: [EMAIL PROTECTED] // Pager: 414.314.8282
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Simple Network Question

2004-04-15 Thread dev
Hi all,

I am more or less new to FreeBSD and used to Linux. I have setup a server
on FreeBSD at home using DHCP. Now I want to move the server into our
housing environment with fixed IP's.

I found in the docs to change the network configuration I have to assign
the new IP and netmask in /etc/rc.conf to my network card.

Am I also right assinging new servers for DNS lookups in /etc/resolv.conf
using this syntax?

nameserver IP-Address

But where can I set the default gateway address?

Dave

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simple Network Question

2004-04-15 Thread Remko Lodder
[EMAIL PROTECTED] wrote:
Hi all,

I am more or less new to FreeBSD and used to Linux. I have setup a server
on FreeBSD at home using DHCP. Now I want to move the server into our
housing environment with fixed IP's.
I found in the docs to change the network configuration I have to assign
the new IP and netmask in /etc/rc.conf to my network card.
Am I also right assinging new servers for DNS lookups in /etc/resolv.conf
using this syntax?
nameserver IP-Address

But where can I set the default gateway address?
Hi Dev!

That's also defined in /etc/rc.conf
configured as
defaultrouter=ipadres

The syntax for /etc/resolv.conf is correct, and yeah since dhcp does not 
give you any dns servers any more you need to fill them in yourself.



Cheers :-)



--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl A Dutch community for helping newcomers on the 
hackerscene
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simple Network Question

2004-04-15 Thread albi
On Thu, 15 Apr 2004 14:35:52 +0200 (CEST)
[EMAIL PROTECTED] wrote:

 I found in the docs to change the network configuration I have to
 assign the new IP and netmask in /etc/rc.conf to my network card.
 
 Am I also right assinging new servers for DNS lookups in
 /etc/resolv.conf using this syntax?
 
 nameserver IP-Address

yes

 But where can I set the default gateway address?

also in /etc/rc.conf, e.g. :
defaultrouter=192.168.0.1

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]