Ubuntu Server Guide Changes, errors and bugs
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
- Bu sahifa navigatsiya:
- Identify Ethernet Interfaces
Network Configuration
Ubuntu ships with a number of graphical utilities to configure your network devices. This document is geared toward server administrators and will focus on managing your network on the command line. Ethernet Interfaces Ethernet interfaces are identified by the system using predictable network interface names. These names can appear as eno1 or enp0s25. However, in some cases an interface may still use the kernel eth# style of naming. Identify Ethernet Interfaces To quickly identify all available Ethernet interfaces, you can use the ip command as shown below. i p a 1 : l o : 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 2 : enp0s25 : group d e f a u l t q l e n 1000 l i n k / e t h e r 0 0 : 1 6 : 3 e : e2 : 5 2 : 4 2 brd f f : f f : f f : f f : f f : f f l i n k −n e t n s i d 0 i n e t 1 0 . 1 0 2 . 6 6 . 2 0 0 / 2 4 brd 1 0 . 1 0 2 . 6 6 . 2 5 5 s c o p e g l o b a l dynamic e t h 0 v a l i d _ l f t 3257 s e c p r e f e r r e d _ l f t 3257 s e c i n e t 6 f e 8 0 : : 2 1 6 : 3 e f f : f e e 2 : 5 2 4 2 / 6 4 s c o p e l i n k 50 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 Another application that can help identify all network interfaces available to your system is the lshw command. This command provides greater details around the hardware capabilities of specific adapters. In the example below, lshw shows a single Ethernet interface with the logical name of eth0 along with bus information, driver details and all supported capabilities. sudo lshw − c l a s s network *−network d e s c r i p t i o n : E t h e r n e t i n t e r f a c e pr o d u c t : MT26448 [ ConnectX EN 10GigE , PCIe 2 . 0 5GT/ s ] vendor : Mellanox T e c h n o l o g i e s p h y s i c a l i d : 0 bus i n f o : pci@0004 : 0 1 : 0 0 . 0 l o g i c a l name : e t h 4 v e r s i o n : b0 s e r i a l : e4 : 1 d : 2 d : 6 7 : 8 3 : 5 6 s l o t : U78CB . 0 0 1 . WZS09KB−P1−C6−T1 s i z e : 10 Gbit / s c a p a c i t y : 10 Gbit / s width : 64 b i t s c l o c k : 33MHz c a p a b i l i t i e s : pm vpd msix p c i e x p r e s s bus_master c a p _ l i s t e t h e r n e t p h y s i c a l f i b r e 10000 bt−f d c o n f i g u r a t i o n : a u t o n e g o t i a t i o n=o f f b r o a d c a s t=y e s d r i v e r=mlx4_en d r i v e r v e r s i o n =4.0−0 duplex= f u l l f i r m w a r e = 2 . 9 . 1 3 2 6 i p = 1 9 2 . 1 6 8 . 1 . 1 l a t e n c y =0 l i n k=y e s m u l t i c a s t=y e s p o r t=f i b r e s p e e d =10Gbit / s r e s o u r c e s : iomemory :24000 −23 f f f i r q : 4 8 1 memory : 3 f e 2 0 0 0 0 0 0 0 0 −3 f e 2 0 0 0 f f f f f memory:240000000000 −240007 f f f f f f Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling