Sometimes we may need to build a server in the LAN and install Fedora or RedHatLinux, but the default DHCP is used to accept the IP allocated by the router. we need to change it. take Fedora12 as an example: edit/etc/sysconfig/network-scripts/ifcfg-eth0, the content is as follows (the Blue Word is added on the original file): # SiliconIntegratedSystems [SiS] SiS900
Sometimes we may need to build a server in the LAN and install Fedora or RedHat Linux, but the default IP address is DHCP, which accepts the IP address assigned by the router. We need to change it.
Take Fedora 12 as an example: edit/etc/sysconfig/network-scripts/ifcfg-eth0, the content is as follows (the Blue Word is added on the original file ):
# Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet
DEVICE = eth0
HWADDR = 00: 1C: C0: 40: F4: 72
ONBOOT = yes
BOOTPROTO = static
NETMASK = 255.255.255.0
IPADDR = 192.168.0.200
DNS1 = 192.168.0.1
DNS2 = 202.102.134.68
GATEWAY = 192.168.0.1
Here, ONBOOT = yes, I guess it may mean that it runs automatically at startup.
BOOTPROTO = static indicates static IP Address Allocation, instead of DHCP or other
The others below are very clear. As long as you know the general network knowledge, it should be possible. Here we set the local IP address to 192.168.0.200
Okay, set it, and reboot.