Bug 739345

Summary: Entry for IPv4 default gateway is missing in routing table after reboot.
Product: [openSUSE] openSUSE 12.1 Reporter: Marcus Husar <marcus.husar>
Component: NetworkAssignee: Marius Tomaschewski <mt>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: The route for the IPv4 default gateway configured in yast.
The output of "route -n".

Description Marcus Husar 2012-01-03 17:12:45 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.16) Gecko/20111108 Iceweasel/3.5.16 (like Firefox/3.5.16)

After reboot or start of systemd unit network.service the routing table misses an entry for the default gateway. The gateway is configured in yast.

By adding it manual to the table the network is working.
route add default gw xxx.xxx.133.1

This should be done by the system. It is possible to define a custom routing table entry in yast (Network Settings > Routing). But the routing table of the system is not altered by yast.

See attachments for details and error messages. Please ask if more information is needed.

Is there a possible workaroud?

I also filed bug #739338. Perhaps there is a relation between the two problems.

Reproducible: Always

Steps to Reproduce:
1. Boot or reboot the machine.
Actual Results:  
It is not possible to ping e.g. google.com or use network services. There is just one row in the routing table for the network (see attachments).

Expected Results:  
There should be a working network connection.
Comment 1 Marcus Husar 2012-01-03 17:13:34 UTC
Created attachment 469575 [details]
The route for the IPv4 default gateway configured in yast.
Comment 2 Marcus Husar 2012-01-03 17:14:01 UTC
Created attachment 469576 [details]
The output of "route -n".
Comment 3 Marcus Husar 2012-01-04 14:24:30 UTC
I think I found the source of the problem.

Systemd runs LSB scripts with /bin/sh. But some of them have bash only syntax.

See https://bugzilla.novell.com/show_bug.cgi?id=739338#c4 for more information.
Comment 4 Marius Tomaschewski 2012-01-09 17:25:30 UTC
ifup-route has to be executed by bash, so a dup. You seem to have
  set -o posix
set somewhere in the global system profiles.

*** This bug has been marked as a duplicate of bug 739338 ***