Bonjour,
Pouvez m'expliquer pourquoi je dois lancer la commande :
[root@localhost sysconfig]# route add default gw 192.168.1.1
afin que je puisse me connecter sur internet ?
Voici les fichiers de ma configuration :
- /etc/sysconfig/network-scripts/ifcfg-eth0
- /etc/resolv.conf
- /etc/sysconfig/network
J'ai désactivé le service NetworkManager afin d'essayer de comprendre ma
configuration réseau.
Ma neuf-box fait-elle office de serveur DNS ?
Merci d'avance de vos lumières car je suis un peu dans le brouillard ...
--------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:XX:XX:XX:XX:XX
NM_CONTROLLED=yes
ONBOOT=yes
#BOOTPROTO=dhcp
BOOTPROTO=none
IPADDR=192.168.1.77
NETMASK=192.168.1.0
BROADCAST=192.168.1.255
DNS1=192.168.1.1
TYPE=Ethernet
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
--------------------------------------------------------------------
/etc/resolv.conf
# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 192.168.1.1
--------------------------------------------------------------------
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=sonate
NTPSERVERARGS=iburst
--------------------------------------------------------------------
[root@localhost sysconfig]# route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
link-local * 255.255.0.0 U 1002 0 0 eth0
--------------------------------------------------------------------
traceroute www.google.fr
traceroute to www.google.fr (209.xxx.xxx.xxx), 30 hops max, 60 byte packets
connect: Le réseau n'est pas accessible
--------------------------------------------------------------------
[root@localhost sysconfig]# route add default gw 192.168.1.1
--------------------------------------------------------------------
[root@localhost sysconfig]# route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
link-local * 255.255.0.0 U 1002 0 0 eth0
default neufbox 0.0.0.0 UG 0 0 0 eth0
--------------------------------------------------------------------
traceroute to www.google.fr (209.xx.xxx.xxx), 30 hops max, 60 byte packets
1 neufbox (192.168.1.1) 0.492 ms 0.686 ms 0.877 ms
2 1.192.140-88.rev.gaoland.net (88.140.192.1) 47.273 ms 49.118 ms 49.171 ms
3 80.124.255.61 (80.124.255.61) 51.054 ms * *
4 V3799.nts1-co-1.gaoland.net (84.96.251.133) 175.242 ms 175.293 ms 175.339 ms
Pouvez m'expliquer pourquoi je dois lancer la commande :
[root@localhost sysconfig]# route add default gw 192.168.1.1
afin que je puisse me connecter sur internet ?
Voici les fichiers de ma configuration :
- /etc/sysconfig/network-scripts/ifcfg-eth0
- /etc/resolv.conf
- /etc/sysconfig/network
J'ai désactivé le service NetworkManager afin d'essayer de comprendre ma
configuration réseau.
Ma neuf-box fait-elle office de serveur DNS ?
Merci d'avance de vos lumières car je suis un peu dans le brouillard ...
--------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:XX:XX:XX:XX:XX
NM_CONTROLLED=yes
ONBOOT=yes
#BOOTPROTO=dhcp
BOOTPROTO=none
IPADDR=192.168.1.77
NETMASK=192.168.1.0
BROADCAST=192.168.1.255
DNS1=192.168.1.1
TYPE=Ethernet
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
--------------------------------------------------------------------
/etc/resolv.conf
# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 192.168.1.1
--------------------------------------------------------------------
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=sonate
NTPSERVERARGS=iburst
--------------------------------------------------------------------
[root@localhost sysconfig]# route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
link-local * 255.255.0.0 U 1002 0 0 eth0
--------------------------------------------------------------------
traceroute www.google.fr
traceroute to www.google.fr (209.xxx.xxx.xxx), 30 hops max, 60 byte packets
connect: Le réseau n'est pas accessible
--------------------------------------------------------------------
[root@localhost sysconfig]# route add default gw 192.168.1.1
--------------------------------------------------------------------
[root@localhost sysconfig]# route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
link-local * 255.255.0.0 U 1002 0 0 eth0
default neufbox 0.0.0.0 UG 0 0 0 eth0
--------------------------------------------------------------------
traceroute to www.google.fr (209.xx.xxx.xxx), 30 hops max, 60 byte packets
1 neufbox (192.168.1.1) 0.492 ms 0.686 ms 0.877 ms
2 1.192.140-88.rev.gaoland.net (88.140.192.1) 47.273 ms 49.118 ms 49.171 ms
3 80.124.255.61 (80.124.255.61) 51.054 ms * *
4 V3799.nts1-co-1.gaoland.net (84.96.251.133) 175.242 ms 175.293 ms 175.339 ms