[clug] help network not working after upgrade to Fedora 22 (urgent)
Paul Wilson
mylists at wilsononline.id.au
Mon Aug 10 06:58:40 UTC 2015
ok I've updated my route-eth0 file with a different syntax
so perhaps this has changed between Fedora versions?
cat /etc/sysconfig/network-scripts/route-eth0
default 192.168.0.1 dev enp6s0
root at mythbox ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 0.0.0.0 255.255.255.255 UH 100 0 0
enp6s0
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0
enp6s0
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0
enp6s0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0
virbr0
Paul
On Mon, Aug 10, 2015 at 4:08 PM, Bob Edwards <Robert.Edwards at anu.edu.au>
wrote:
> On 10/08/15 15:55, Paul Wilson wrote:
>
>> note it still fails with/out interface at end of command
>>
>> [root at mythbox ~]# route add default gw 192.168.0.1
>> SIOCADDRT: Network is unreachable
>>
>> ====
>>
>> [root at mythbox ~]# route -n
>> Kernel IP routing table
>> Destination Gateway Genmask Flags Metric Ref Use
>> Iface
>> 192.168.0.0 192.168.0.1 255.255.255.0 UG 100 0 0
>> enp6s0
>>
> ^^^^^^^^^^^
> This is wrong. Gateway should be 0.0.0.0 for a directly connected network,
> and the 'G' flag should be off (ie. just 'U').
>
> Then there should be a separate line like:
> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0
> enp6s0
> for the default route.
>
> cheers,
>
> Bob Edwards,
>
>
> 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0
>> virbr0
>>
>> [root at mythbox ~]# ifconfig -a
>> enp4s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
>> ether 00:50:43:00:38:af txqueuelen 1000 (Ethernet)
>> RX packets 0 bytes 0 (0.0 B)
>> RX errors 0 dropped 0 overruns 0 frame 0
>> TX packets 0 bytes 0 (0.0 B)
>> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>> device interrupt 18
>>
>> enp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
>> inet 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255
>> inet6 fe80::21d:7dff:fed5:2481 prefixlen 64 scopeid 0x20<link>
>> ether 00:1d:7d:d5:24:81 txqueuelen 1000 (Ethernet)
>> RX packets 4559 bytes 477339 (466.1 KiB)
>> RX errors 0 dropped 0 overruns 0 frame 0
>> TX packets 3255 bytes 768551 (750.5 KiB)
>> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>>
>> ....
>>
>> On Mon, Aug 10, 2015 at 3:45 PM, Brett Worth <brett.worth at gmail.com>
>> wrote:
>>
>>> On 10/08/15 15:37, Paul wrote:
>>>
>>>>
>>>>
>>>> [root at mythbox ~]# route add default gw 192.168.0.1 enp6s0
>>>> SIOCADDRT: Network is unreachable
>>>>
>>>
>>>
>>> You shouldn't have the enp6s0 on the end of that command. i.e.
>>> [root at mythbox ~]# route add default gw 192.168.0.1
>>>
>>>
>>> Brett
>>>
>>> --
>>> /) _ _ _/_/ / / / _ _//
>>> /_)/</= / / (_(_/()/< ///
>>>
>>>
>>> --
>>> linux mailing list
>>> linux at lists.samba.org
>>> https://lists.samba.org/mailman/listinfo/linux
>>>
>>
>>
>
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>
More information about the linux
mailing list