AT the beginning your exam pc will get IP from DHCP
server.
But for the exam you have to change the IP manually and
set to the static mode.
Example:
# ifconfig –a
This command will show your current IP configuration
Now to change
1st Method
# cd
/etc/sysconfig/network-scripts/
# vim ifcfg-eth0
Initially this file will be look like this:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:1E:68:9B:30:CB
ONBOOT=yes
But you have to change as per the exam requirement.
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:1E:68:9B:30:CB
ONBOOT=yes
IPADDR=172.24.0.10
NETMASK=255.255.0.0
NETWORK=172.24.0.0
BROADCAST=172.0.255.255
To change DNS info
# vim /etc/resolv.conf
Add/change this line
nameserver
172.24.0.254
Remember initially you may get an IP of class A but the
examiner may give an IP of class B.
2nd Method
# system-config-network
And give the IP information.
To check your hostname
# hostname –fqdn
To change hostname temporarily
# hostname station10.example.com
To change hostname permanently
# vim /etc/hosts
Add/change this line
172.24.0.10 station10.example.com station10
# vim /etc/sysconfig/network
Add/change this line
HOSTNAME=station10.example.com
Thanks and don't forget to click some adds.
No comments:
Post a Comment