Network configuration

Michał Masłowski mtmi at o2.pl
Sat Nov 19 10:58:22 GMT 2005


> >> - you are NOT trying to get the second PC on the Internet
> >
> > No, I'm not. The agreement with my ISP doesn't allow to connect more
> > than one computer to the WAN.
>
> LOL ;) I won't condone going against their rules, but that is what NAT
> is for...
>
> > Part of my network's configuration is not in /etc/rc.conf . I have
> > there only ifconfig_rl0="DHCP" to connect to the Internet. I used
> > these commands to configure the LAN:
> > #ifconfig rl0 alias 192.168.0.1
> > 192.168.0.2
>
> How about:
>
> # ifconfig rl0 alias 192.168.0.1/24
>
> I can't remember if /24 will work, if it doesn't:
>
> # ifconfig rl0 alias 192.168.0.1 255.255.255.0
>
> > On the second PC:
> > #ifconfig fxp0 192.168.0.2 192.168.0.1
>
> and:
>
> # ifconfig fxp0 192.168.0.2/24
>
> ...should get you at minimum to see each other.
>
> ie: from 2nd pc:
>
> # ping 192.168.0.1
>
> ...now about that 2 pc's on the Internet thing. I think *almost* all
> ISP's who offer highspeed say that.
>
> Steve
>

It works without packet loss. Thank for your advice.


More information about the freebsd-questions mailing list