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.
LVL 2
marietto2008Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cbmmCommented:
you shouldnt need to ppp on the freebsd, you get an adress dynamically
0
TeRReFCommented:
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...
0
marietto2008Author Commented:
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"


0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

TeRReFCommented:
From reading your story, I assumed that the router has ip address 192.168.2.1. Your PC can't have the same address and that's why I gave it 192.168.2.2

They ARE connected via a network (UTP) cable right?

In a browser, you should be able to browse to 192.168.2.1 with the above config...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
marietto2008Author Commented:
ok. everything good. thanks.
0
marietto2008Author Commented:
ok. everything good. thanks.
0
TeRReFCommented:
If the router runs a DHCP server, you could also remove the above lines and instead add this one:

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

thanks.
0
TeRReFCommented:
kopete?
0
marietto2008Author Commented:
kopete : A flexible and extendable multiple protocol instant messaging system designed as a plugin-based system.
pidgin works good,instead.
0
TeRReFCommented:
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...
0
marietto2008Author Commented:
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 ?
0
TeRReFCommented:
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)
0
marietto2008Author Commented:
i can't see what's my ip address with ifconfig/ip config all ! another way ? thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Broadband

From novice to tech pro — start learning today.