LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-18-2006, 04:30 AM   #1
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Rep: Reputation: 15
Fixed IP on my work laptop :-(


Hi,

I have a wireless LAN at home using the 192.168.x.x private address range. My Linux box is providing storage, print and internet access as well as DHCP, DNS e-mail etc.

So far so good, except I have been given a laptop from work which is locked down with a fixed IP address on the wireless card. I'd like to use it wireless at home (I have to plug it in at the moment!) so...

How do I add a second IP to my Linux box and get it to provide all the same services (except, naturally, DHCP) on the second network number? I can use the same address as the default gateway at work (or the DNS server, although I would like to put both addresses on the interface).

Many thanks,

Paul
 
Old 09-18-2006, 05:03 AM   #2
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Rep: Reputation: 30
This can be achieved with a profile management but I never done this. Maybe others may help.
 
Old 09-18-2006, 11:53 PM   #3
InkyGhost
LQ Newbie
 
Registered: Sep 2006
Location: OC
Distribution: Debian (Sarge)
Posts: 4

Rep: Reputation: 0
Lightbulb Haha, I cheated and beat the same problem.

My work laptop is also locked down with afixed IP address to the wireless card. I cheated and bought a cheap 802.11b router for $13 from geeks.com and hooked it to a port on my box.

I assigned the router a fixed WAN ip address to fit my server range and defined that port on the server to be a DMZ port. Then I just made the router address my laptop direclty with MAC addressing and the problem was solved in less the 10 minutes.

I know I didn't learn anything new about my server that way, but at least I was able to get my laptop up and running wireless quickly. I just felt my time was worth more in this case than the $13 I spent on the cheaters way out. Besides, I didn't really want to screw up the server a friend of mine set up for me until I get a better handle on this Samba stuff I'm playing with.

InkyGhost
 
Old 09-19-2006, 02:12 AM   #4
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Original Poster
Rep: Reputation: 15
An interesting solution that I may well have to try.... I only really have two problems (sorry to be negative!) with that method:
  1. I already have a wireless network set up for other machines at home, so I'd have to duplicate it all and make sure the laptop connects to the correct one (doable, but a pain!)
  2. DNS. The fixed address assigned by work is an internal DNS server, so won't work with my DNS at home. So I will still need to put a second address onto the box and tell it to serve DNS on that address. Unless, of course, I can get the router to do reverse NAT on the port, but that is getting both complicated and, I suspect, expensive!

BTW, someone, elsewhere, suggested changing the address range I use at home to match work. I could do this, but it would involve an awful lot of configuration and also may cause problems as work is using a public address space (privately, can you believe!) Also, like you, I don't want to risk breaking SAMBA etc (which took AGES to get working right - particularly printing!) with the knock-on implications for my marriage!!!!

Thanks,

Paul
 
Old 09-19-2006, 07:10 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,782
Blog Entries: 1

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
If you have root privileges on your work computer you could assign a new IP address and gateway with ifconfig and route. The DNS is going to be a bit trickier, but I think you could add your ISP's nameservers to /etc/resolv.conf and leave the work DNS in there as well. That is probably going to cause a lag when you surf, but I'm not sure there is a way around that without removing your work DNS entry.
 
Old 09-19-2006, 01:23 PM   #6
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks Hangodog, but unfortunately, Linux doesn't become involved on the laptop, only the server. The laptop is M$ Windoze!

I cannot alter the config of the laptop at all. It doesn't use DHCP for a very good reason, which I can accept.

All I need is for the Linux box to appear, to the laptop, to be the same as the work network.
 
Old 09-19-2006, 01:55 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You could just add an alias to your linux box on the network card - ie:
ifconfig eth0:1 192.168.100.1 netmask 255.255.255.0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logout wouldn't work (fixed) mimithebrain Linux - Software 2 04-13-2006 11:05 AM
what laptop will work? liamvinix Linux - Laptop and Netbook 1 02-24-2006 11:58 AM
Will it work on my laptop!? DDoS YourseLF *BSD 4 07-28-2005 09:36 AM
should have left the laptop at work... arslin Linux - Newbie 1 05-14-2005 04:43 AM
what version will work on a laptop scooter6175 Linux - Newbie 4 07-15-2003 11:59 AM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration