LAN IP Address (Change)
Is it possible to change my LAN IP on my Linux PC? Just i figured out something that i wanna try.
Thank you P.S OS: Red Hat Enterprise Version 4 |
Yes its possible.
The command is netconfig Run the above command as root user and change the Ip-address. |
Ahhhh yeah then i can't use the internet =/ Is there a way to change it in a file so i can still use the internet? I thought there was just can't remember.
|
What has the local IP to do with internet?
It will not affect the internet connection. But that depends on what type of connection you are using. And for what purpose do you want to change the IP? If its just for temporary display [with ifcoonfig command] you can try ifconfig eth0 ipaddress [But take a not of the old ip before doing this] |
Ok well i did that "netconfig" And it came up etc etc... and i filled it out. BUT it don't work.There has to be a file you can edit to change the IP
|
netconfig is the command that is normally used to change the IP in a redhat PC.
IP address will be available in the following files.Check it out. /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 [eth1,etc...] |
Ok the files are saying my IP is 10.0.0.93 BUT the ifconfig isn't. It's saying it's 192.168.0.93 :S
|
Try this [as root user]
ifconfig eth0 down ifconfig eth0 10.0.0.63 ifconfig eth0 up But still the purpose of ur IPaddress change is unclear ;> |
Ok. Look my router only forwards ports with 10.0.0 infront of them e.g. (10.0.0.23 10.0.0.98 etc...) So i was wonder of changing the IP so it would work. And it doesn't work! The internet doesn't work.
|
All times are GMT -5. The time now is 07:01 PM. |