BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-24-2010, 12:31 AM   #1 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Modem Change IP Address

Please Login to Remove!

Hello,

I am using my BB as a modem and it is working great for mostly everything.

Is there a way to have the BB assign my PPP connection a different IP scemed IP address?

Long story short. The network at my office is on the same ip scheme so VPN is hairy..
I usually end up finding a hotspot because I need a different IP..

I can hit a few machines that are on some oddball subnet, but the main network just happens to be numbered the same as the IP address I am getting from the BB.
Offline  
Old 07-24-2010, 03:11 AM   #2 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,530
Post Thanks: 220
Thanked 345 Times in 311 Posts
Default

No. The IP your BlackBerry receives is assigned by your service provider and there is no way to change it.
__________________
I h8 txtspk.
Offline  
Old 07-24-2010, 06:27 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
johnling's Avatar
 
Join Date: Dec 2006
Location: MI, USA
Model: 9700
OS: .714
PIN: Cushion
Carrier: T-Mobile
Posts: 372
Post Thanks: 5
Thanked 0 Times in 0 Posts
Default

The IP is assigned by the router each time you log onto a network. It can be and most likely is different each time you log in. If you have access to the router you could assign a static IP and see if that solves your problem.
__________________
Thanks,
johnling


9700, 8520 & Pearl -T-Mobile
Offline  
Old 07-24-2010, 07:34 AM   #4 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,530
Post Thanks: 220
Thanked 345 Times in 311 Posts
Default

Quote:
Originally Posted by johnling View Post
The IP is assigned by the router each time you log onto a network. It can be and most likely is different each time you log in. If you have access to the router you could assign a static IP and see if that solves your problem.
It is not possible to access AT&T's routers to make any such changes.
__________________
I h8 txtspk.
Offline  
Old 07-24-2010, 11:44 AM   #5 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not talking about being plugged into a router unless oyu are talking about a router built into the phone..

Actually that is what I was wondering.. I was hoping the phone was assigned an IP address from AT&T and then when I tether I am assigned a IP address from the phone.
Offline  
Old 07-24-2010, 10:51 PM   #6 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,530
Post Thanks: 220
Thanked 345 Times in 311 Posts
Default

Quote:
Originally Posted by slinkeey View Post
I am not talking about being plugged into a router unless oyu are talking about a router built into the phone..

Actually that is what I was wondering.. I was hoping the phone was assigned an IP address from AT&T and then when I tether I am assigned a IP address from the phone.
I know you weren't talking about that which is why I corrected the other guy.

And no, the IP address that your phone is assigned is the one your computer uses. There are no additional routing processes involved.

There is no easy solution to your problem unfortunately. The easiest one would be for you to use a different provider for mobile broadband. The other, but far more difficult solution would be to request to your company IT department that they change the public IP address of their VPN concentrator to allow you to connect whilst you're mobile. I highly doubt they will do that (depending on the size of your company), so I would be prepared to do something different yourself.
__________________
I h8 txtspk.
Offline  
Old 07-25-2010, 12:19 AM   #7 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe I can do some slick routing on my notebook..

I will see if I can create a virtual adapter on a 192.168 network in ubuntu that routes traffic to my ppp connection. Then when I try to go to a 10.x addess it wont be thinking to use the local network instead of the vpn route..
Offline  
Old 07-25-2010, 01:32 AM   #8 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,530
Post Thanks: 220
Thanked 345 Times in 311 Posts
Default

Quote:
Originally Posted by slinkeey View Post
Maybe I can do some slick routing on my notebook..

I will see if I can create a virtual adapter on a 192.168 network in ubuntu that routes traffic to my ppp connection. Then when I try to go to a 10.x addess it wont be thinking to use the local network instead of the vpn route..
Actually, now that I think about it, since you have Linux, you might be able to build some interface-based static routes. Is there at least one octet of the IP address that is different between your company's VPN interface and the AT&T connection (e.g., VPN = 10.10.x.x, AT&T = 10.11.x.x)?
__________________
I h8 txtspk.
Offline  
Old 07-25-2010, 09:26 AM   #9 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes..
The Offic Lan has:

10.10.x.x
10.20.x.x
10.30.x.x

The PPP connection is getting 10.56.x.x
Offline  
Old 07-25-2010, 09:27 AM   #10 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes..
The Office Lan has:

10.10.x.x
10.20.x.x
10.30.x.x

The IT department went a little wild..

The PPP connection is getting 10.56.x.x
Offline  
Old 07-25-2010, 09:40 AM   #11 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,530
Post Thanks: 220
Thanked 345 Times in 311 Posts
Default

Ok, then I think we can make this work. You obviously seem familiar enough with Linux, so here's the basic commands that should make this work (you will probably need to tweak it):

Code:
# The following lines will route your office traffic through the VPN tunnel whilst all other traffic goes out through the BlackBerry directly to the Internet
#
# In each line, after "dev", enter the VPN interface number
#
route add -net 10.10.0.0 netmask 255.255.0.0 dev vpn0
route add -net 10.20.0.0 netmask 255.255.0.0 dev vpn0
route add -net 10.30.0.0 netmask 255.255.0.0 dev vpn0
I'm not guaranteeing this will work, but it's the best I've got.
__________________
I h8 txtspk.
Offline  
Old 07-25-2010, 11:14 AM   #12 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank You Sir!

That worked..

I just added:
route add -net 10.20.0.0 netmask 255.255.0.0 dev tun0

This is the only part of the network I care about... (AS400 and My Desktop are ont his network..)

It added an entry with 0.0.0.0 as the gateway....

I am suprised it wouldn't work before this as 10.0.0.0 netmask 255.0.0.0 was added to my routing table by OpenVNC but the difference was th 10.0.0.0 was pointing to OpenVNCs IP as the gateway..

Unless drilling down to 10.20 makes darn sure that my own network between the BB and myself doesn't try routing it on it's own..

Jeff
Offline  
Old 07-25-2010, 10:46 PM   #13 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,530
Post Thanks: 220
Thanked 345 Times in 311 Posts
Default

Quote:
Originally Posted by slinkeey View Post
Thank You Sir!

That worked..

I just added:
route add -net 10.20.0.0 netmask 255.255.0.0 dev tun0

This is the only part of the network I care about... (AS400 and My Desktop are ont his network..)

It added an entry with 0.0.0.0 as the gateway....

I am suprised it wouldn't work before this as 10.0.0.0 netmask 255.0.0.0 was added to my routing table by OpenVNC but the difference was th 10.0.0.0 was pointing to OpenVNCs IP as the gateway..

Unless drilling down to 10.20 makes darn sure that my own network between the BB and myself doesn't try routing it on it's own..

Jeff
Awesome! Glad it worked.

0.0.0.0 is the default route and should always be there. It is dynamic based on how your computer is connected to the Internet at the time.

The reason that the 10.0.0.0 255.0.0.0 entry did work is that with that network mask it was including both the 10.20.0.0 and 10.56.0.0 traffic in that route. By default, computers try to summarize routes as much as possible, and this is normally seen as best practice in networking, but in some cases such as yours this can cause problems.
__________________
I h8 txtspk.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.