Reiniciar el servicio
Reiniciar el servicio
1
|
[root@localhost~]# ip add show
|
1
|
[root@localhost~]# ip addres add 192.168.10.61/24 dev em2
|
1
|
[root@localhost~]# ip route add default via 192.168.10.1 dev em2
|
1
|
[root@localhost~]# echo "nameserver 8.8.8.8" >> /etc/resolv.conf
|
1
|
[root@localhost~]# yum update
|
1
|
[root@localhost~]# yum install net-tools
|
1
|
[root@localhost~]# ifconfig
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[root@localhost~]# vi /etc/sysconfig/network-scripts/ifcfg-em2
HWADDR="08:00:27:FE:4D:FE"
TYPE="Ethernet"
BOOTPROTO="none" #reemplazar por none
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="enp0s3"
UUID="f324bc5d-6c62-437d-bdaa-6f223a96c14f"
ONBOOT="yes"
#Adicionar los parametros de tu red
#dirección de ip
IPADDR="192.168.10.61"
#mascara de red
NETMASK="255.255.255.0"
#puerta de enlace
GATEWAY="192.168.10.1"
#DNS
DNS1="8.8.8.8"
|
1
2
3
4
5
6
7
|
[root@localhost~]# systemctl stop NetworkManager
[root@localhost~]# systemctl disable NetworkManager
rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'
rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'
rm '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service'
[root@localhost~]# systemctl restart network
[root@localhost~]# chkconfig network on
|
1
|
[root@localhost~]# ifconfig
|
Comentarios
Publicar un comentario