Amaliy qism:
sudo ethtool eth4
Settings for eth4:
Supported ports: [ FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000014 (20)
link ifdown
Link detected: yes
IP-manzil
Quyidagi bo'limda mahalliy tarmoq va Internetda aloqa qilish uchun zarur bo'lgan sizning IP-manzilingizni va standart shlyuzni sozlash jarayoni tasvirlangan.
Vaqtinchalik IP-manzilni tayinlash
Vaqtinchalik tarmoq konfiguratsiyasi uchun siz boshqa GNU / Linux operatsion tizimlarida ham mavjud bo'lgan ip buyrug'idan foydalanishingiz mumkin. IP buyrug'i darhol kuchga kiradigan sozlamalarni sozlash imkonini beradi, ammo ular doimiy emas va qayta ishga tushirilgandan so'ng yo'qoladi.
IP-manzilni vaqtincha sozlash uchun ip buyrug'idan quyidagi usulda foydalanishingiz mumkin. Tarmoq talablariga mos ravishda IP-manzil va pastki tarmoq maskasini o'zgartiring.
sudo ip addr add 10.102.66.200/24 dev enp0s25
Keyin ip havolani yuqoriga yoki pastga o'rnatish uchun ishlatilishi mumkin.
ip link set dev enp0s25 up
ip link set dev enp0s25 down
Enp0s25-ning IP-manzil konfiguratsiyasini tekshirish uchun ip buyrug'idan quyidagi usulda foydalanishingiz mumkin.
ip address show dev enp0s25
10: enp0s25: mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:16:3e:e2:52:42 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.102.66.200/24 brd 10.102.66.255 scope global dynamic eth0
valid_lft 2857sec preferred_lft 2857sec
inet6 fe80::216:3eff:fee2:5242/64 scope link
valid_lft forever preferred_lft forever6
Odatiy shlyuzni sozlash uchun ip buyrug'idan quyidagi usulda foydalanishingiz mumkin. Tarmoq talablariga mos keladigan standart shlyuz manzilini o'zgartiring.
sudo ip route add default via 10.102.66.1
Standart shlyuz konfiguratsiyasini tekshirish uchun ip buyrug'idan quyidagi usulda foydalanishingiz mumkin.
ip route show
default via 10.102.66.1 dev eth0 proto dhcp src 10.102.66.200 metric 100
10.102.66.0/24 dev eth0 proto kernel scope link src 10.102.66.200
10.102.66.1 dev eth0 proto dhcp scope link src 10.102.66.200 metric 100
Agar siz vaqtinchalik tarmoq konfiguratsiyasi uchun DNS-ni talab qilsangiz, /etc/resolv.conf faylida DNS-serverning IP-manzillarini qo'shishingiz mumkin. Umuman olganda /etc/resolv.conf-ni to'g'ridan-to'g'ri tahrirlash tavsiya etilmaydi, ammo bu vaqtinchalik va doimiy bo'lmagan konfiguratsiya. Quyidagi misol /etc/resolv.conf-ga ikkita DNS-serverni qanday kiritish kerakligini ko'rsatadi, bu sizning tarmog'ingizga mos serverlarga o'zgartirilishi kerak. DNS-mijoz konfiguratsiyasini amalga oshirishning doimiy usulini yanada uzoqroq tavsifi quyidagi bo'limda keltirilgan.
nameserver 8.8.8.8
nameserver 8.8.4.4
Agar sizga endi ushbu konfiguratsiya kerak bo'lmasa va barcha IP-konfiguratsiyani interfeysdan tozalashni xohlasangiz, ip buyrug'ini quyida ko'rsatilganidek, yuvish opsiyasi bilan ishlatishingiz mumkin.
ip addr flush eth0
Do'stlaringiz bilan baham: |