Link to home
Start Free TrialLog in
Avatar of Mario Zio
Mario ZioFlag for Italy

asked on

how to configure a router

Hello everybody,
 
I have an ADSL connection. Yesterday i've bought a USRobotics ADSL2+Ethernet/USB Router and now i'm using it via Ethernet under Vista. I've configured it through the Web (by typing 192.168.2.1) and under Windows Vista it works great,but not with FreeBSD,because this ip address is not reachable.When i use the ppp -ddial to call the connection,it works good and it builds a tun0 interface,but there is no ip address associated with it,as you can see :

ppp -ddial name_connection

loading /lib/libalias_cuseeme.so
loading /lib/libalias_ftp.so
loading /lib/libalias_irc.so
loading /lib/libalias_nbt.so
loading /lib/libalias_pptp.so
loading /lib/libalias_skinny.so
loading /lib/libalias_smedia.so
working in ddial mode
using interface: tun0

ifconfig

bge0 : flags=8843<up,broadcast,running,simplex,multicast> metric 0 mtu 1500
           options=9b<rxcsum,txcsum,vlan_mtu,vlan_hwtagging,vlan_hwcsum>
           ether 0 0:16:17:ac:e5:57
           media : ethernet autoselect (100 basetx <full-duplex>)
           status : active

plip0: flags=108810 <pointtopoint,simplex,multicast,needsgiant> metric 0 mtu 1500

lo0 : flags=8049 <up,loopback,running,multicast> metric 0 mtu 16384
       inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
       inet ::1 prefix len 128
       inet 127.0.0.1 netmask 0xff000000

tun0 : flags=805: <up,pointtopoint,running,multicast> metric 0 mtu 1500
         opened by pid 1057
 
what should i do to use this router under FreeBSD ? Thanks.
Avatar of cbmm
cbmm
Flag of United States of America image

you shouldnt need to ppp on the freebsd, you get an adress dynamically
Put these lines in /etc/rc.conf

defaultrouter="192.168.2.1"
ifconfig_bge0="inet 192.168.2.2  netmask 255.255.255.0"

reboot and try again...
Avatar of Mario Zio

ASKER

you make an error ?

maybe is like this :

defaultrouter="192.168.2.1"
ifconfig_bge0="inet 192.168.2.1  netmask 255.255.255.0"


ASKER CERTIFIED SOLUTION
Avatar of TeRReF
TeRReF
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok. everything good. thanks.
ok. everything good. thanks.
If the router runs a DHCP server, you could also remove the above lines and instead add this one:

ifconfig_bge0="DHCP"
Ah, okay. You're welcome :)
a question : kopete is unabled to connect the network. why ? fixes ?

thanks.
kopete?
kopete : A flexible and extendable multiple protocol instant messaging system designed as a plugin-based system.
pidgin works good,instead.
Ah... email and browser are working okay? You will probably have to forward 1 or more ports to the PC (NAT configuration on router). What ports kopete uses I don't know, you'll have to read the docs or their website...
Another question : this router can be connected to the pc via eth or via usb. i'm using it via eth,already. can i connect another pc via usb to share the same adsl connection ?
I really don't know. THere is only 1 UTP port? Usually routers nowadays have at least 4. Anyway. It should be in the manual. If it's not possible, you can always setup the FreeBSD PC as a router. You would need a hub/switch for that though (and an extra NIC card in the FreeBSD PC)
i can't see what's my ip address with ifconfig/ip config all ! another way ? thanks