User manual
2 Getting Started
2.3. Configure Network
Now you can configure network interfaces by editing /etc/network/interfaces. The IP addresses
for eth0, eth1 and wlan0
3
are statically assigned by default(see the Listing below).
# This f i l e d e s c r i b e s t he network i n t e r f a c e s a v a i l a b l e on your system
# and how to a c t i v a t e them . For more inf or ma t io n , s e e i n t e r f a c e s ( 5 ) .
# The l oop bac k network i n t e r f a c e
auto l o
i f a c e l o i n e t lo opb ack
# The primary network i n t e r f a c e
auto e th0
i f a c e eth0 i n e t s t a t i c
add res s 1 9 2 . 1 6 8 . 2 5 4 . 2 5 4
netmask 2 5 5 . 2 5 5 . 2 5 5 . 0
# The s ec ondar y network i n t e r f a c e
auto e th1
i f a c e eth1 i n e t s t a t i c
add res s 1 9 2 . 1 6 8 . 2 5 3 . 2 5 4
netmask 2 5 5 . 2 5 5 . 2 5 5 . 0
# The w i r e l e s s i n t e r f a c e
#auto wlan0
i f a c e wlan0 i n e t s t a t i c
add res s 1 9 2 . 1 6 8 . 1 2 7 . 2 5 4
netmask 2 5 5 . 2 5 5 . 2 5 5 . 0
wpa− d r i v e r wext
wpa− co n f / e t c / wpa_supplicant . c o nf
post−up echo BLUE > / proc / v s o p e n r i s c / l e d s
post−down echo blue > / pr oc / vsopenris c / l e d s
Listing 1: /etc/network/interfaces
post-up and post-down directives switch blue LED on and off signaling that wireless interface is
up or down (KS8695 based devices only). The wireless interface wlan0 will be configured with the
wpa_supplicant utility (see Section 4.1).
Setup gateway and DNS server Assuming your router has IP address 192.168.254.1 the OnRISC
will be configured in the following way:
1. change eth0 section of /etc/network/interfaces file
auto eth0
iface eth0 inet static
address 192.168.254.254
netmask 255.255.255.0
gateway 192.168.254.1
2. insert following line to the /etc/resolv.conf
4
nameserver 192.168.254.1
3
to activate wlan0 uncomment the #auto wlan0 line in /etc/networking/interfaces
4
see man resolv.conf for explanations
May 2014 OnRISC User Manual 13