• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1665
  • Last Modified:

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.
0
marietto2008
Asked:
marietto2008
  • 7
  • 7
1 Solution
 
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
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
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
 
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

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 7
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now