Вы находитесь на странице: 1из 12

Module 08

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

Objective 2: Basic Network Configuration


Objective 4: Configuring Client Side DNS

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

Basic Network Configuration and Configuring Client


Side DNS

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

Basic Network Configuration and Configuring Client


Side DNS

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

/etc/networks: Like /etc/hosts, this file sets


ad
C upacequivalence
x thebkaddresses
between addresses and names, but here
u
.
n
w
represent entire networks
i
w
L
w
I
//
:
P
L http

Basic Network Configuration and Configuring Client


Side DNS

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

Basic Network Configuration and Configuring Client


Side DNS

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

Basic Network Configuration and Configuring Client


Side DNS

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

Basic Network Configuration and Configuring Client


Side DNS

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 handles IP address allocation in one of three ways:


Dynamic allocation
DHCP server maintains a preset list of IP addresses ndesignated
io
by the system administrator.
t
a
c
IP addresses are assigned as clients request an
i address
from
f
m
i
o
t
the available addresses in the pool.
c
r
.
e
d
a
The address can be used, or leased, for C
a limited
c period of time.
a
x
k with the server
The client must continually renegotiate
the lease
u
b
.
n the wallotted period.
i
to maintain use of the address beyond
w
L
w
I
// is placed back into the
When the lease expires, the IPPaddress
:
tp
t
L
h
pool for use by other requesting clients
and a new IP address is
assigned.

DHCP Configuration

DHCP handles IP address allocation in one of three ways:


Manual allocation
The system administrator may wish to designate specific
IP
n
io to an
addresses to specific network interfaces (for example,
t
adeliver the
c
Ethernet MAC address) while still using DHCP ito
i f com
t
address to the client.
r
.

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

Вам также может понравиться