-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add networking (bridge) support to Qemu, ping works! :-)
- Use the Qemu bridge helper to connect a tap to `virbr0` as a non-priviliged user - Update README with requirements and a few instructions for how to get `qemu-bridge-helper` working - Disable ifplugd, instead ... - Use BusyBox `ifup` to bring up Debian style `/etc/network/interfaces` - Convert `udhcpc` script `/share/udhcpc/default.script` to use `logger` - Add PCI support and a few PCI NIC drivers to kernel, default: RTL8139 - Disable kernel `CONFIG_VIRTIO_CONSOLE`, messes up regular console! Signed-off-by: Joachim Nilsson <[email protected]>
- Loading branch information
Showing
7 changed files
with
348 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/sh | ||
# udhcpc script edited by Tim Riker <[email protected]> | ||
# Reduced verbosity and use logger --Troglobit | ||
|
||
RESOLV_CONF="/etc/resolv.conf" | ||
|
||
|
@@ -12,32 +13,28 @@ BROADCAST="broadcast +" | |
|
||
case "$1" in | ||
deconfig) | ||
echo "Setting IP address 0.0.0.0 on $interface" | ||
logger -t "udhcpc" -p daemon.info "$interface: Resetting ..." | ||
ifconfig $interface 0.0.0.0 | ||
;; | ||
|
||
renew|bound) | ||
echo "Setting IP address $ip on $interface" | ||
logger -t "udhcpc" -p daemon.info "$interface: Set/Renew IP $ip mask $mask $BROADCAST router ${router%% *}" | ||
ifconfig $interface $ip $NETMASK $BROADCAST | ||
|
||
if [ -n "$router" ] ; then | ||
echo "Deleting routers" | ||
while route del default gw 0.0.0.0 dev $interface ; do | ||
while route del default gw 0.0.0.0 dev $interface 2>/dev/null; do | ||
: | ||
done | ||
|
||
metric=0 | ||
for i in $router ; do | ||
echo "Adding router $i" | ||
route add default gw $i dev $interface metric $((metric++)) | ||
done | ||
fi | ||
|
||
echo "Recreating $RESOLV_CONF" | ||
echo -n > $RESOLV_CONF-$$ | ||
[ -n "$domain" ] && echo "search $domain" >> $RESOLV_CONF-$$ | ||
for i in $dns ; do | ||
echo " Adding DNS server $i" | ||
echo "nameserver $i" >> $RESOLV_CONF-$$ | ||
done | ||
mv $RESOLV_CONF-$$ $RESOLV_CONF | ||
|
Oops, something went wrong.