Can't ping default gateway
-
- Posts: 7
- Joined: 2018/01/26 18:34:12
Can't ping default gateway
I am just startingto learn and I try for a day and still can't ping my gateway. I hope you guys can help me. I'm using amd athlon ii x3 445 cpu and gigabyte m68mt-d3 motherboard.
/etc/sysconfig/network-scripts
vi ifcfg-enp0s7
TYPE="Ethernet"
BOOTPROTO="static"
IPADDR=192.168.1.245
NETMASK=255.255.255.0
NM_CONTROLLED=no
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="enp0s7"
DEVICE="enp0s7"
ONBOOT="yes"
/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=centos7
GATEWAY=192.168.1.1
/etc/resolv.conf:
nameserver 8.8.8.8
nameserver 8.8.4.4
ifconfig -a (the enp0s7 interface)
enp0s7: flags=4163<UP, BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.245 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::1ebf:65ff:feb1:d080 prefixlen 64 scopeid 0x20<link>
ether 1c:6f:65:b1:d0:80 txqueuelen 1000 (Ethernet)
RX packets 143 bytes 11508 (11.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 1404 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
/etc/sysconfig/network-scripts
vi ifcfg-enp0s7
TYPE="Ethernet"
BOOTPROTO="static"
IPADDR=192.168.1.245
NETMASK=255.255.255.0
NM_CONTROLLED=no
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="enp0s7"
DEVICE="enp0s7"
ONBOOT="yes"
/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=centos7
GATEWAY=192.168.1.1
/etc/resolv.conf:
nameserver 8.8.8.8
nameserver 8.8.4.4
ifconfig -a (the enp0s7 interface)
enp0s7: flags=4163<UP, BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.245 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::1ebf:65ff:feb1:d080 prefixlen 64 scopeid 0x20<link>
ether 1c:6f:65:b1:d0:80 txqueuelen 1000 (Ethernet)
RX packets 143 bytes 11508 (11.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 1404 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Re: Can't ping default gateway
You could try to put GATEWAY=192.168.1.1 in /etc/sysconfig/network-scripts/ifcfg-enp0s7.
-
- Posts: 7
- Joined: 2018/01/26 18:34:12
Re: Can't ping default gateway
Hi tunk,
I tried and did a service network restart and still unable to ping
I tried and did a service network restart and still unable to ping
Re: Can't ping default gateway
Post the output from lspci -nn | grep -i net so that we can see what sort of chipset it is.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 7
- Joined: 2018/01/26 18:34:12
Re: Can't ping default gateway
When I run lspci -nn | grep -i net
The output is:
00:07.0 Bridge [0680]: NVIDIA Corporation MCP61 Ethernet [10de:03ef] (rev a2)
The output is:
00:07.0 Bridge [0680]: NVIDIA Corporation MCP61 Ethernet [10de:03ef] (rev a2)
Re: Can't ping default gateway
Right, and since this is CentOS 7 which doesn't have a driver for that card, did you install a package from somewhere else to enable it?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 7
- Joined: 2018/01/26 18:34:12
Re: Can't ping default gateway
I install the kmod driver. Does that mean I can't use internet at all? How about if I nic card will it be possible to connect to internet?
Re: Can't ping default gateway
Which package did you install?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 7
- Joined: 2018/01/26 18:34:12
Re: Can't ping default gateway
kmod forcedeth-0.64
Re: Can't ping default gateway
The latest version is
kmod-forcedeth.x86_64 0.64-3.el7.elrepo elrepo
Is that the one you are using? And what is the output from uname -a ?
kmod-forcedeth.x86_64 0.64-3.el7.elrepo elrepo
Is that the one you are using? And what is the output from uname -a ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke