Module 08 - Basic Network Configuration
Module 08 - Basic Network Configuration
n
o
i
Basic Network Configuration
t
a
c
it fi com
r d.
e
C aca
x bk
u
.
n
w
i
w
L
w
I
//
:
P
t tp
L
h
Objectives
I
P
L
i
t
er
n
o
i
t
a
c
fi
a
x
k
u
b
.
n
ww
Li
w
//
:
tp
t
h
d
a
c
.c o
Network Interfaces
Configuration files:
/etc/hosts: This file contains simple mappings between IP
addresses and names and is used for name resolution
i
t
er
n
o
i
t
a
c
fi
.c o
d used by
/etc/nsswitch.conf: This file controls the
a
C sources
c
a
x
various system library lookup functions,such
as
k name
u
b
.
n
w
resolution.
i
w
L
I
/w
/
:
LP http
Network Interfaces
Configuration files:
/etc/resolv.conf: This file controls the client-side portions of
the DNS system
i
t
er
n
o
i
t
a
c
fi
.c o
Network Interfaces
Configuration commands
ifconfig
I
P
L
i
t
er
n
o
i
t
a
c
fi
a
x
k
u
b
.
n
ww
Li
w
//
:
tp
t
h
d
a
c
.c o
Network Interfaces
Configuration commands
ifconfig
I
P
L
i
t
er
n
o
i
t
a
c
fi
a
x
k
u
b
.
n
ww
Li
w
//
:
tp
t
h
d
a
c
.c o
Network Interfaces
Configuration commands
I
P
L
i
t
er
n
o
i
t
a
c
fi
a
x
k
u
b
.
n
ww
Li
w
//
:
tp
t
h
d
a
c
.c o
Network Interfaces
Configuration commands
I
P
L
i
t
er
n
o
i
t
a
c
fi
a
x
k
u
b
.
n
ww
Li
w
//
:
tp
t
h
d
a
c
.c o
DHCP Configuration
DHCP Configuration
e
C
I
P
L
a
x
k
u
b
.
n
ww
Li
w
//
:
tp
t
h
d
a
c
DHCP Configuration
Subnets and relays
DHCP relay system can be established on subnets without
DHCP servers
n
o
i forwards
A relay system listens for DHCP client broadcasts,
t
a
c
them to a DHCP server on another subnet, and
i returns
f
m
i
o
t
DHCP traffic back to the client
c
r d.
e
C aca
Leases
x bk
u
.
when a client receives a dynamically
n assigned
IP address
w
i
w to be leased for a
L
from a DHCP server, the address
is
said
w
I
//
:
P
finite duration
L http
The length of a DHCP lease is configurable by the system
administrator
DHCP Configuration
Dhcpd
The DHCP server process is called dhcpd
It is typically started at boot time and listens for incoming
DHCP request broadcasts
n
dhcpd is configured using the text configuration file
o
i
t
/etc/dhcpd.conf
ca
I
P
L
it fi com
e r d.
x bk
u
.
n
w
i
w
L
w
//
:
tp
t
h
a
c
a