Setting up LAN on Sysresccd [solved]

All other questions
LinuxNewbie
Posts: 2
Joined: 28 Dec 2011, 08:57

Setting up LAN on Sysresccd [solved]

Postby LinuxNewbie » 28 Dec 2011, 09:59

Hello.
How does one setup the IP address, gateway and DNS via a bash script?
Many thanks.
Last edited by LinuxNewbie on 28 Dec 2011, 18:49, edited 2 times in total.

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: Setting up LAN on Sysresccd

Postby gernot » 28 Dec 2011, 15:47

A typical configuration to use sysrcd with a router:

# just in case...
/etc/init.d/Networkmanager stop

# setup ip/netmask
ifconfig eth0 192.168.0.30/24

# setup defaultroute
route add default gw 192.168.0.1

#setup nameserver
echo nameserver 8.8.8.8 >/etc/resolv.conf


If you use a dhcp server then run dhclient instead.

LinuxNewbie
Posts: 2
Joined: 28 Dec 2011, 08:57

Re: Setting up LAN on Sysresccd

Postby LinuxNewbie » 28 Dec 2011, 15:55

Thank you.


Return to “Other”

Who is online

Users browsing this forum: No registered users and 2 guests