Opened 11 years ago

Closed 11 years ago

#934 closed task (fixed)

Fixup network configuration

Reported by: Andrew Bradford Owned by: Andrew Bradford
Priority: major Milestone: CLFS Embedded 1.0.0
Component: BOOK Version: CLFS Embedded GIT
Keywords: Cc:

Description

Let's just show how to do a simple dhcp client configuration.

The current book doesn't talk about making /etc/network directory or the files that should be inside, like:

  • interfaces
  • if-up.d
  • if-down.d
  • if-post-down.d

Without these ifup and ifdown will complain when used.

A simple interfaces file would be like:

auto eth0
iface eth0 inet dhcp

Change History (4)

comment:1 by Andrew Bradford, 11 years ago

Owner: changed from clfs-commits@… to Andrew Bradford
Status: newassigned

comment:2 by Andrew Bradford, 11 years ago

Further info, /etc/network should have something like:

drwxr-xr-x 2 andrew users 4096 Oct  1 10:16 if-down.d
drwxr-xr-x 2 andrew users 4096 Oct  1 10:16 if-post-down.d
drwxr-xr-x 2 andrew users 4096 Oct  8 15:04 if-post-up.d
drwxr-xr-x 2 andrew users 4096 Oct  8 15:04 if-pre-down.d
drwxr-xr-x 2 andrew users 4096 Oct  1 10:16 if-pre-up.d
drwxr-xr-x 2 andrew users 4096 Oct  1 10:16 if-up.d
-rw-r--r-- 1 andrew users   53 Oct  1 10:16 interfaces

comment:3 by Andrew Bradford, 11 years ago

Also worth integrating netplug into the book for ethernet cable insert/removal detection.

http://www.red-bean.com/~bos/

comment:4 by Andrew Bradford, 11 years ago

Resolution: fixed
Status: assignedclosed

I'll open netplug as another ticket. Book has been updated as of SHA: d92670cff5916fe922b89e14f47be4fc140a1865 to have a working (although not rigorously tested) udhcpc configuration for getting IP via DHCP when using 'ifup'.

Being able to do 'ifup' like things on cable insert will be what netplug provides.

Note: See TracTickets for help on using tickets.