- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- different IP's on diff places
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 12:40 AM
03-13-2003 12:40 AM
I have a notebook with RH8. I work on it on different locations. Sometimes I need to get a ip from dhcp, sometimes I need a fixed IP.
Is there a way to automate this. Or semi-automate it, with some icons on my desktop?
Thanks in Advance
Donald
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 02:18 AM
03-13-2003 02:18 AM
Solutionhow about adding a shortcut to redhat-config-network on your desktop :-)
also, read the following page in your box for some info.
/usr/share/redhat-config-network/help/network-profiles.html
hth
-balaji
ps: can u please post back ur results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 05:42 AM
03-13-2003 05:42 AM
Re: different IP's on diff places
http://netenv.sourceforge.net/
--
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 02:39 PM
03-13-2003 02:39 PM
Re: different IP's on diff places
What Balaji said is the 'manual' way to chagne these settings.
To have it done by some 'icons', you could create a small script (or two) of which did the work manually.
Simply put, the difference between a Statically assigned IP and a DHCP assigned IP (configuration wise) in RH is one argument to one variable in one file.
/etc/sysconfig/network-scripts/ifcfg-eth0
The line 'BOOTPROTO' takes two values (in reality). The two are:
BOOTPROTO=static
or
BOOTPROTO=dhcp
All of the other settings can change, just this *one* needs to change. After changing this value, just 'ifdown eth0;ifup eth0' is sufficient for the new settings to take place.
So it now depends on how 'automated' you want this to be. The simplest scripted way would be to have a 'dhcp' version and a 'static' version of the file, and a small script which changes a symobolic link to the appropriate one.
A more complex routine could check what the current setting is and use 'ex' to change it in place.
If you need help setting these finer points up, just post back.
Hope this helps, or gives you a better idea of what direction to head.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 01:05 AM
04-03-2003 01:05 AM
Re: different IP's on diff places
++++++++++++++++++++++++++++++
The ifup command and profiles
A little known fact is that newer versions of RHL support multiple network profiles. This is useful for machines that commonly plug into different networks (think laptops). The easy way to create network profiles is to use the redhat-config-network command. The question then becomes, what happens when you type "ifup eth0"? The behavior wasn't defined in previous versions, however, now in RHL 9 the following behavior is defined;
search path for:# ifup $DEVis:/etc/sysconfig/networking/profiles/$CURRENT_PROFILE/ifcfg-$DEV/etc/sysconfig/networking/profiles/default/ifcfg-$DEV/etc/sysconfig/network-scripts/ifcfg-$DEV
A cool trick is to boot your RHL box directly into a profile from the GRUB boot screen. To do this, create a separate /etc/boot/grub.conf entry for each network profile, and in each entry add the kernel argument netprofile=profilename.
++++++++++++++++++++++++++++++
and for those interested in the full review read it below. a good article for sys admins.
http://www.gurulabs.com/RedHatLinux9-review.html
any1 tried rhl9 already?
-balaji