Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Network configuration under ubuntu

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Enter command 1: sudo vi /etc/network/interfaces

#DHCP gets ip configuration automatically

auto lo #boot auto lo interface

iface lo inet loopback #configure lo interface as loop loopback

auto eth0 #Start automatically activates eth0 interface

iface eth0 inet dhcp #configure eth0 interface for DHCP autofetch

#statically assign IP address configuration

auto lo #boot auto lo interface

iface lo inet loopback #configure lo interface as loop loopback

auto eth0 #Start automatically activates eth0 interface

iface eth0 inet static #Configure eth0 interface as static Set IP address

address 192.168.1.10

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

gateway 192.168.1.1

#DNS Configuration

sudo vi /etc/resolv.conf

nameserver 192.168.1.1

Enter command 2: sudo /etc/init.d/networking restart #Restart the network

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report