Enviado em 23/03/2021 - 06:47h
Olá a todos,$ update-rc.d -f dhcpd remove # I have disabled dhcp, not sure if it is needed
$ systemctl disable NetworkManager.service # also disabled the network manager
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#auto enp2s0
allow-hotplug enp2s0
iface enp2s0 inet static
address 192.168.10.101
netmask 255.255.255.0
gateway 192.169.10.100
$ cat /etc/resolv.conf
nameserver 192.169.10.100
$ ip a show eno1:
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:ec:ef:10:32:42 brd ff:ff:ff:ff:ff:ff
inet 192.168.10.101/24 brd 192.168.10.255 scope global eno1
valid_lft forever preferred_lft forever
$ ip route show
default via 192.168.10.100 dev eno1 onlink linkdown
192.168.10.0/24 dev eno1 proto kernel scope link src 192.168.10.101 linkdown
$ ethtool eno1
Settings for eno1:
Supported ports: [ ]
Supported link modes: 1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Port: Other
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: g
Wake-on: g
Current message level: 0x0000000f (15)
drv probe link timer
Link detected: no
$ iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#auto enp2s0
allow-hotplug enp2s0
iface enp2s0 inet static
address 192.168.10.100
netmask 255.255.255.0
$ cat /proc/sys/net/ipv4/ip_forward # I have enabled ip forwarding
1
Settings for eno1:
Supported ports: [ TP ]
Supported link modes: 1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: g
Wake-on: g
Current message level: 0x0000000f (15)
drv probe link timer
Link detected: yes