I have two local subnetsWireless 172.24.80.160/27
Wired 192.168.1.0/24
Eth0 of the Dockstar is connected to wireless via a gigabit switch and a wireless bridge
Eth1 of the Dockstar is connected to wired via a gigabit switch and a power line bridge
I have a Zywall 5 that routes provides routing and firewall between the two subnets and to my DSL modem for internet connection. The Zywall is also the DHCP server for each subnet.
The goal of the second NIC is to allow PCs on either subnet to access the Dockstar shares.I installed the current base system
I did pacman -Syu
viewtopic.php?f=15&t=1148I installed samba my smb.conf file and samba is working on eth0
I installed openntpd and set the time zone in rc.conf
I now have installed iptables
I have added the Dockstar’s hostname (DS101) to /etc/hosts
Unrelated I have installed hd-idle but I am not staring it automatically at this time
I haven’t installed anything else
Since you are using DHCP for the Dockstar’s LAN port your router supplies the default gateway. I am using static LAN IP addresses so I must specify the gateway.
$this->bbcode_second_pass_code('', '
login as: root
root@172.24.80.178's password:
Last login: Tue May 24 06:13:58 2011 from 172.24.80.169
[root@DS101 ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 02:50:43:0C:1D:DE
inet addr:172.24.80.178 Bcast:172.24.80.191 Mask:255.255.255.224
inet6 addr: fe80::50:43ff:fe0c:1dde/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:108 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10606 (10.3 Kb) TX bytes:11485 (11.2 Kb)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:0E:C6:88:7E:A5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
')
/etc/rc.d/network restart
doesn't start eth1
$this->bbcode_second_pass_code('', '
[root@DS101 ~]# /etc/rc.d/network restart
:: Stopping Network [FAIL]
:: Starting Network [BUSY] /etc/rc.d/network: line 52: /usr/sbin/iwconfig: No such file or directory
/etc/rc.d/network: line 56: iwgetid: command not found
172.24.80.191,eth1: Host name lookup failure
[FAIL]
[root@DS101 ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 02:50:43:0C:1D:DE
inet addr:172.24.80.178 Bcast:172.24.80.191 Mask:255.255.255.224
inet6 addr: fe80::50:43ff:fe0c:1dde/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:231 errors:0 dropped:0 overruns:0 frame:0
TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22194 (21.6 Kb) TX bytes:20643 (20.1 Kb)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:0E:C6:88:7E:A5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
')
my current rc.conf
$this->bbcode_second_pass_code('', '
[root@DS101 etc]# cat rc.conf
#
# /etc/rc.conf - Arch Linux ARM install Linux Main Configuration
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="DS101"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
#Static IP example
eth0="eth0 172.24.80.178 netmask 255.255.255.224 broadcast 172.24.80.191"
eth1="eth1 192.168.1.213 netmask 255.255.255.0 broadcast 192.168.1.255"
#eth0="dhcp"
INTERFACES=(eth0,eth1)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 172.24.80.161"
ROUTES=(gateway)
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)
#ntpd startup flags
ntpd_flags="-s"
#/etc/rc.d/openntpd restart
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network openntpd netfs crond sshd samba)
[root@DS101 etc]#
')