Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to modify ip address in linux RH 7.3 server

Status
Not open for further replies.

willfixit

Technical User
Sep 5, 2002
3
NZ
Hi, how to modify IP address in linux RH 7.3 server ?
If I put ip address in linux server I can use internet via ip gateway, but fail if I use dialup, if I take off all ip configuration, I can connect internet via dial up, how to setup this server to connect to intranet and do dialup to internet in the same thine ?
 
What utility are you using to "control" your dialup?
Utilities like wvdial do a good job of configuring your
routing and that sounds like the problem.
 
Not sure I understand what you're asking, but I'll make my best guess: Using a dialup and your lan connection at the same time.
To do this (which is sometimes considered a bad idea), use the route command. How depends on which interface goes to the internet, and which to the intranet. I'll assume the intranet is on eth0 and the internet is on ppp0. Let's also assume you know what network numbers your company, err, I mean intranet uses. So.....

route add default gw ppp0 metric 1 (instead of ppp0 you could also use the ip address)
to set your default gateway to the internet connection, since it will have any number of networks you are trying to get to.
For the LAN use:
route add -net 192.168.0.0 mask 255.255.255.0 eth0
route add -net 135.74.136.0 mask 255.255.255.0 eth0
(and so on for your LAN networks)

This should give you what you want, but is a security hole for your LAN. YHBW!!!
 
sorry I not ask clear question... :) , its actualy simple question... how can I change my Ip adress in linux RH 7.3 (server mode)...

Thanks for your help... :)
 
If you ran Gnome from setting --> network configuration.
You can change the ip address.
Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top