Docsity

Linux Network Configuration - Linux Network Administration - Lecture Slides, Slides of Linux skills

Toggle sidebar
bg1
Linux Network Configuration
Linux System Administration
/etc/resolv.conf Tells the kernel which name server
should be queried when a program asks to "resolve"
an IP Address.
nameserver 172.31.1.1
search cc.iitk.ac.in iitk.ac.in
/etc/sysconfig/network Indicates networking is
enabled (NETWORKING=yes) and provides
information on hostname, gateway and nis domain.
NETWORKING=yes
HOSTNAME=webhome.cc.iitk.ac.in
NISDOMAIN=cc
GATEWAY=172.31.1.250
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Linux Network Configuration - Linux Network Administration - Lecture Slides and more Slides Linux skills in PDF only on Docsity!

Linux Network Configuration

/etc/resolv.conf Tells the kernel which name server should be queried when a program asks to "resolve" an IP Address. nameserver 172.31.1. search cc.iitk.ac.in iitk.ac.in

/etc/sysconfig/network Indicates networking is enabled (NETWORKING=yes) and provides information on hostname, gateway and nis domain. NETWORKING=yes HOSTNAME=webhome.cc.iitk.ac.in NISDOMAIN=cc GATEWAY=172.31.1.

Linux Network Configuration

/etc/sysconfig/network-scripts/ifcfg-eth0 N etwork configurations like boot protocol (static/dhcp), ip address, netmask, network address, broadcast address etc. DEVICE=eth ONBOOT=yes BOOTPROTO=static IPADDR=172.31.1. NETMASK=255.255.0. BROADCAST=172.31.255. NETWORK=172.31.0. GATEWAY=172.31.1.

Scheduling Jobs: Cron

Cron is a program that enables you to execute a

command, or a script with a sequence of commands,

at a specified date, time or at set intervals.

Add the job script in /etc/cron.hourly or

/etc/cron.daily or /etc/cron.weekly or

/etc/cron.monthly to schedule a job

Scheduling Jobs: Cron

Make an entry in /etc/crontab file to schedule a job (crontab -

e) the format is

          • command_to_execute each star denotes Minute Hour Day_of_Month Month Day_of_Week Minute = Minute of the hour, 00 to 59. * Will indicate every minute Hour = Hour of the day in 24-hour format, 00 to 23. * Will indicate every hour Day = Day of the month, 1 to 31. * Will indicate every day Month = Month of the year, 1 to 12. * Will indicate every month Day = Day of the week, 3 chars - sun, mon, tue, or numeric (0=sun,

1=mon etc).... * Will indicate every day

Task = The command you want to execute