您的位置:时时app平台注册网站 > 时时app平台注册网站 > CentOS网络有关安装(vim手工业配置)时时app平台注册

CentOS网络有关安装(vim手工业配置)时时app平台注册

2019-09-10 19:19

/etc/init.d/network restart

[root@localhost ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=leekwen.leekwen

ONBOOT=yes

 

[root@localhost ~]# vi /etc/resolv.conf
[root@localhost ~]# cat /etc/resolv.conf
search localdomain
nameserver 192.168.160.1
nameserver 202.101.172.46

[[email protected] ~]# cat /etc/resolv.conf

nameserver 192.168.2.1   #默认1

>>>>配置定位IP地址<<<<

[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

 

[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29:D1:A6:ED
ONBOOT=yes
IPADDR=192.168.160.11
NETMASK=255.255.255.0
BROARDCAST=192.168.160.255
GATEWAY=192.168.160.1
[root@localhost ~]# /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:D1:A6:ED
inet addr:192.168.160.11 Bcast:192.168.160.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fed1:a6ed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13960 errors:0 dropped:0 overruns:0 frame:0
TX packets:4796 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3749651 (3.5 MiB) TX bytes:480572 (469.3 KiB)
Interrupt:75 Base address:0x2000

nameserver 192.168.160.1

1.cat /etc/resolv.conf search localdomain nameserver 192.168.2.1 #默认1 nameserver 192.168.2.1 #默认2 2.vi /etc/resolv.conf search localdomain nameserver 1...

时时app平台注册网站 1

 

nameserver 192.168.2.1   #默认2

互连网有关的多少个指令如下:

          TX packets:4796 errors:0 dropped:0 overruns:0 carrier:0

3.重启网络: 

 

HWADDR=00:0C:29:D1:A6:ED

 

 

[[email protected] ~]# cat /etc/sysconfig/network

 

>>>>修改主机名<<<<

          inet6 addr: fe80::20c:29ff:fed1:a6ed/64 Scope:Link

 

>>>>配置DNS地址<<<<

Bringing up interface eth0:                                [  OK  ]

 

[root@localhost ~]#vi /etc/sysconfig/network

) 互连网有关的多少个指令如下: 配置定位IP地址 [[email protected] ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 [[email protected]

 

[root@localhost ~]# ifconfig eth0
[root@localhost ~]# vi /etc/resolv.conf
[root@localhost ~]# cat /etc/resolv.conf
search localdomain
nameserver 192.168.160.1
nameserver 202.101.172.46

          collisions:0 txqueuelen:1000

linux操作dns命令

[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

CentOS网络有关安装(vim手工业配置)

service network restart  

越来越多CentOS相关消息见CentOS 专项论题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

 

1.cat /etc/resolv.conf

CentOS互连网有关安装(vim手工业配置)

          Interrupt:75 Base address:0x2000

 

          RX bytes:3749651 (3.5 MiB)  TX bytes:480572 (469.3 KiB)

 

NETMASK=255.255.255.0

search localdomain

>>>>修改主机名<<<<

nameserver 192.168.2.1   #默认1

互连网有关的几个指令如下:

2.vi /etc/resolv.conf

search localdomain

 

>>>>配置定位IP地址<<<<

nameserver 192.168.2.1   #默认2

 

 

nameserver 202.101.172.46  

search localdomain

Shutting down loopback interface:                          [  OK  ]

[[email protected] ~]# /etc/init.d/network restart

GATEWAY=192.168.160.1

nameserver 202.101.172.46

 

DEVICE=eth0

[[email protected] ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

>>>>配置DNS地址<<<<

IPADDR=192.168.160.11

Bringing up loopback interface:                            [  OK  ]

NETWORKING_IPV6=no

BROARDCAST=192.168.160.255

Shutting down interface eth0:                              [  OK  ]

          inet addr:192.168.160.11  Bcast:192.168.160.255  Mask:255.255.255.0

[[email protected] ~]# ifconfig eth0

 

eth0      Link encap:Ethernet  HWaddr 00:0C:29:D1:A6:ED

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 

 

[[email protected] ~]# vi /etc/resolv.conf

BOOTPROTO=static

HOSTNAME=leekwen.leekwen

[[email protected] ~]# vi /etc/sysconfig/network

[[email protected] ~]# ifconfig eth0

NETWORKING=yes

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

search localdomain

[[email protected] ~]# vi /etc/resolv.conf

 

 

[[email protected] ~]# cat /etc/resolv.conf

nameserver 192.168.160.1

          RX packets:13960 errors:0 dropped:0 overruns:0 frame:0

本文由时时app平台注册网站发布于时时app平台注册网站,转载请注明出处:CentOS网络有关安装(vim手工业配置)时时app平台注册

关键词:

  • 上一篇:没有了
  • 下一篇:没有了