Nov 22, 2009

Configure Laptop To Work On Static And DHCP

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Networking

Configure Laptop To Work On Static And DHCP

WeaponX
Hi, I want to configure a laptop so it will work in both static and dynamic (DHCP) environments. I have setup my home network using static IP addressing but the college uses dynamic addressing. Home is using wireless and I guess if it's used at the college, it will probably be wireline.

Was thinking about this over the other day and just want to verify if this will work (since the laptop doesn't belong to me...and I don't have access to it a lot of times). If I set the default connection (TCP/IP Properties) to be automatic obtain IP and the alternate connection to static, will that work? I have SSID and password for my home network...

I just don't want to reconfigure everything again each time the laptop is used at home. The user is not computer savvy...so I would have to do it if there is no way around it.

Thanks.

Comment/Reply (w/o sign-up)

blackbart
Would be easier to address if you gave us some information on your operating system. If you are in linux you could set up two network configuration files on slackware the file is /etc/rc.d/ rc.inet1.conf
CODE

Config information for eth0:
IPADDR[0]="192.168.1.125"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="no"
DHCP_HOSTNAME[0]=""
...
.....
...
# Default gateway IP address:
GATEWAY="192.168.1.1"


As yu can see there are settings for the address, using DHCP and the default gateway. there are many more entries in the file for how ever many interfces you may have. open the file in your favorite editor and set it up for a fixed IP by entering your config in the appropriate lines. save this file as rc.inet1.fixed
now remove the mask, address and gateway values and replace the value for "USE_DHCP[0]" to "yes."
Save this file as rc.inet1.dhcp. you can now write a simple shell script to copy the proper file to rc.inet1.conf.
CODE

#!/bin/sh
cp /etc/rc.d/rc.inet1.$1 /etc/rc.d/rc.inet1.conf

save it as chnetconf, or whatever, chmod it to 755 and call it with "chnetconf (fixed or dhcp)"
This is all real basic and there are other aspects to consider such as user rights and chmodding the files to writable, etc. but if you'e linux geek it oughta be cake
IF, you have windoze:
You'll have to be comforatable working in regedit
you can export the TCPIP configuration for your fixed ip config from within regedit to a fixed.reg file then go in through control panel and change the config to DHCP and export the settings again to a dhcp.reg file.
These files can be double clicked to update the registry for the desired effect or, yu can write a .cmd file to call regedit with the proper file name depending on the desired effect. My Windoze is rusty so do a little msn search on "parameters in .cmd files" for your answer to that one.
I'd just put shortcuts to the .reg files on the desktop or in the menu with labels like 'Change to DHCP" & "Change to Fixed IP"


 

 

 


Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : configure, laptop, work, static, dhcp

  1. Connect Sony W810i To Laptop Via Bluetooth
    how to connect sony w810i to laptop via bluetooth (2)
  2. Networking
    networking laptop to PC (3)
    Hi /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Need help
    with the following..... I have one desktop connected to a netgear router through ethernet. And two
    laptops connected wirelessly to the same router. I want to be able to file share between the
    laptops to the PC. The PC is XP, and both laptops are Vista. How do i do this and maybe the easiest
    way? haha OH... P.S i have an Xbox 360 that I'd like to network with the PC to, May help to do
    this too? Thanks. :....
  3. How To Setup An Vpn
    How to configure Open VPN on Ubuntu linux (1)
    Hi Folks, I wanted to know how I can configure VPN, on my ubuntu box.. I want to use this machine to
    be able to log on to other computer in the network. thanks in advance. ....
  4. Having Network Card Issues On A Dual Boot Laptop
    (4)
    I have just installed a dual boot setup with Windows XP Professional SP2 and Ubuntu 7.04 on a DELL
    Inspiron 1501. While I did the installation no cable was plugged into the NIC. After plugging a
    network cable into the NIC I'm having the problem that Ubuntu recognizes and can work with the
    NIC without any problems, but in Windows XP I can't get the LAN connection to show up in Network
    Connections. So I have therefore narrowed down the problem as not being on the hardware side. I
    tried running the Add Hardware wizard with the installation CD inside and instructed ....
  5. How Do I Create Static Routes In Windows Xp?
    (11)
    Here's my setup: My PC connects to my Internet facing wireless router via a USB-pluggable
    wireless NIC, the IP address of which is 192.168.1.2 (netmask 255.255.255.0). The IP address of my
    router's LAN port is 192.168.1.1. The NIC which is embedded in the motherboard has remained
    disabled so far. Everything works OK, but I recently got a hold of a crossover cable, and I started
    using it to connect a laptop to my PC. So I enabled the embedded NIC on the PC and gave it an IP
    address of 192.168.2.2 (netmask 255.255.255.0, default gateway 192.168.2.2). The laptop&....
  6. [help] Networking Pc & Laptop
    (10)
    Just bought a new Laptop and would like to configure it to connect to my PC for File Sharing and
    Internet . My PC Details are as follows : Connects to the Internet via a ADSL USB Modem. Cellpipe
    20A USB modem. PC has 1 Dlink Network Card (Internal). My Laptop Details: Its a Compaq Presario
    V5233EA with a built in network card and wifi. I am completely new to the networking scene so
    please tell me what extra information you need. I have a Cross over cable and i have connected both
    the computers and it connects. Just that the first time it showed me that it was u....
  7. Configure 1st And 2nd Name Server
    (4)
    I configured a dns server formy own use recently, such that I can control everything on dns. There
    are two dns server and configured in master-slave master and slave dns server are located in
    different location (i.e. different subnet) the master dns will relocate to another data centre soon,
    then it may be down for a while. Do Internet people still able to query and resolve my domain name
    ? against on slave dns server ? I configured primary and secondary name server on the domain
    hosting company where primary name server is pointed to master dns server secondary name ....
  8. Stubborn Laptop
    Can't see computers on network (5)
    I have a laptop that can't see other computers on my network. I try to map a local drive Z: and
    I go under My Computer > Tools > Map Network Drive > Browse > Entire Windows Network title > MSHOME
    and it is right there it says that it doesn't have permissions and to contact the network
    administrator (which I guess is me). I have ran the network wizard on it with no sucess either. I
    know it is connecting to the network because I can see it on my router's connections screen. My
    other laptop which hosts Z: connects fine and so does my other computer. That lapto....
  9. dns adress and IP to configure a domain
    Problem with registrar company (6)
    Hi guys. While I'm waiting for my startin' pack in astahost, I've got an account in
    100WebSpace . They sent me the dns adress to configure my domain, however my registrar company asked
    for an IP number asociated with that dns. None IP number was provided to me by the hosting company
    with such purpose, only one corresponding to the ftp server. I used this IP in my registrar and it
    works. My question is: is always neccesary to provide an IP number beside the dns?....

    1. Looking for configure, laptop, work, static, dhcp

See Also,

*SIMILAR VIDEOS*
Searching Video's for configure, laptop, work, static, dhcp
advertisement



Configure Laptop To Work On Static And DHCP

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com