summaryrefslogtreecommitdiffstats
path: root/recipes/netbase/netbase/bluepro/interfaces
blob: 9b27ef05570e55ec9fa5d4673030cda833f84a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback


# Wired ethernet interface of "tiny box"
auto eth0
iface eth0 inet dhcp


# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
	address 192.168.0.202
	netmask 255.255.255.0
	network 192.168.0.0
	gateway 192.168.0.200

# CAN interfaces
auto can0
iface can0 inet manual
	pre-up ip link set $IFACE type can bitrate 125000 listen-only off
	up /sbin/ifconfig $IFACE up
	down /sbin/ifconfig $IFACE down

auto can1
iface can1 inet manual
	pre-up ip link set $IFACE type can bitrate 125000 listen-only off
	up /sbin/ifconfig $IFACE up
	down /sbin/ifconfig $IFACE down