network :
v e r s i o n : 2
r e n d e r e r : networkd
e t h e r n e t s :
e t h 0 :
a d d r e s s e s :
− 1 0 . 1 0 . 1 0 . 2 / 2 4
gateway4 : 1 0 . 1 0 . 1 0 . 1
n a m e s e r v e r s :
s e a r c h : [ mydomain , otherdomain ]
a d d r e s s e s : [ 1 0 . 1 0 . 1 0 . 1 , 1 . 1 . 1 . 1 ]
The configuration can then be applied using the netplan command.
sudo n e t p l a n apply
Loopback Interface
The loopback interface is identified by the system as
lo and has a default IP address of 127.0.0.1. It can be
viewed using the ip command.
i p a d d r e s s show l o
1 : l o :
mtu 65536 q d i s c noqueue s t a t e UNKNOWN group
d e f a u l t q l e n 1000
l i n k / l o o p b a c k 0 0 : 0 0 : 0 0 : 0 0 : 0 0 : 0 0 brd 0 0 : 0 0 : 0 0 : 0 0 : 0 0 : 0 0
i n e t 1 2 7 . 0 . 0 . 1 / 8 s c o p e h o s t l o
v a l i d _ l f t f o r e v e r p r e f e r r e d _ l f t f o r e v e r
i n e t 6 : : 1 / 1 2 8 s c o p e h o s t
v a l i d _ l f t f o r e v e r p r e f e r r e d _ l f t f o r e v e r
Do'stlaringiz bilan baham: