Mario Zio
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,ru nning,simp lex,multic ast> metric 0 mtu 1500
options=9b<rxcsum,txcsum,v lan_mtu,vl an_hwtaggi ng,vlan_hw csum>
ether 0 0:16:17:ac:e5:57
media : ethernet autoselect (100 basetx <full-duplex>)
status : active
plip0: flags=108810 <pointtopoint,simplex,mult icast,need sgiant> metric 0 mtu 1500
lo0 : flags=8049 <up,loopback,running,multi cast> 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,m ulticast> metric 0 mtu 1500
opened by pid 1057
what should i do to use this router under FreeBSD ? Thanks.
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,ru
options=9b<rxcsum,txcsum,v
ether 0 0:16:17:ac:e5:57
media : ethernet autoselect (100 basetx <full-duplex>)
status : active
plip0: flags=108810 <pointtopoint,simplex,mult
lo0 : flags=8049 <up,loopback,running,multi
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,m
opened by pid 1057
what should i do to use this router under FreeBSD ? Thanks.
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...
defaultrouter="192.168.2.1
ifconfig_bge0="inet 192.168.2.2 netmask 255.255.255.0"
reboot and try again...
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"
maybe is like this :
defaultrouter="192.168.2.1
ifconfig_bge0="inet 192.168.2.1 netmask 255.255.255.0"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok. everything good. thanks.
ASKER
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"
ifconfig_bge0="DHCP"
Ah, okay. You're welcome :)
ASKER
a question : kopete is unabled to connect the network. why ? fixes ?
thanks.
thanks.
kopete?
ASKER
kopete : A flexible and extendable multiple protocol instant messaging system designed as a plugin-based system.
pidgin works good,instead.
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...
ASKER
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)
ASKER
i can't see what's my ip address with ifconfig/ip config all ! another way ? thanks