Day 8
Network Configuration
IP classes
Class Range Default subnet mask Prefix
Class A -> 1 to 126 -> 255.0.0.0 -> 8
Class B -> 128 to 191 -> 255.255.0.0 -> 16
Class C -> 192 to 223 -> 255.255.255.0 -> 24
Class D -> 224 to 235
Class E -> 236 to 254
255 -> broadcast address
127 -> loopback address
Subnetting -> dividing a large network into small networks
Subnet Mask -> unique id for such small networks
To configure network using TUI client
system-config-network
[! there are 2 options available - device & dns configuration]
Device configuration
Name : eth0
Device : eth0
Use DHCP : None
Static IP : 192.168.0.109
Netmask : 255.255.255.0
Default gateway IP : 192.168.0.254
Primary DNS server : 192.168.0.254
Secondary DNS server : 192.168.0.254
[! this is a sample setup that uses static IP]
To update the changes
service network restart
To check the IP of the system
ifconfig
ip addr show
Associated config files
1. /etc/sysconfig/network-scripts/ifcfg-eth0
[! to configure the ip]
2. /etc/sysconfig/network
[! contains the hostname of the system]
3. /etc/resolv.conf
[! contains the DNS info]
To get the current hostname of the system
hostname
To know the status of all configured devices
service network status
-- End of Day 8 --
-- End of SA1 --
No comments:
Post a Comment