You are not logged in.
Pages: 1
Hi,
I do not find any instructions how to do the network setup in this case.
You can find examples how other distributions do, but there is no description for Archlinux:
http://wiki.meego.com/ARM/N900/Tips_and … Networking
Can anybody amend it or tell me what to do and I can solve it and update the wikipage please ? (Udev rules part is the same I guess, I think I can add some part of it in the /etc/rc.conf file, but no idea about iptable etc)
Thank you in advance!
Offline
Hi,
I do not find any instructions how to do the network setup in this case.
You can find examples how other distributions do, but there is no description for Archlinux:
http://wiki.meego.com/ARM/N900/Tips_and … NetworkingCan anybody amend it or tell me what to do and I can solve it and update the wikipage please ? (Udev rules part is the same I guess, I think I can add some part of it in the /etc/rc.conf file, but no idea about iptable etc)
Thank you in advance!
You've been using Arch for how long? Someone with 1000+ posts should not:-
a) still be posting in Newbie Corner
b) know so little about Arch in general as to not be able to AT LEAST attempt to follow the instructions in that page
c) post a thread with the line 'tell me what to do'
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
What is wrong about this netcfg settings ? I try to run one command when I connect to the host PC (Archlinux) with my phone. If I run the POST_UP command manually, it works just fine.
root /home/djszapi # cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Budapest"
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=(fuse vboxdrv vboxnetflt tun bridge)
MODULES=(!pcspkr fuse rt73usb)
# 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="djszapi"
# 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
#
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
# 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 192.168.0.1"
# ROUTES=(!gateway)
# Bridges and VPN setup
# br0=("br0 192.168.1.110 netmask 255.255.255.0 broadcast 192.168.1.255" eth0)
# BRIDGES=(br0)
# vpn0=("vpn0.conf" tap0 br0)
# VPNS=(vpn0)
# 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
#
# WIRELESS_INTERFACE="wlan0"
# WIRED_INTERFACE="eth0"
# NETWORKS=(potolan)
WIRED_INTERFACE="usb0"
NETWORKS=(ethernet-n900)
# -----------------------------------------------------------------------
# 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
# fam replaced by gamin
# DAEMONS=(@syslog-ng iptables @netfs @crond dbus hal @gpm @alsa @avahi-daemon httpd @sshd fail2ban @acpid @sensors @lm_sensors cpufreq powernowd tpfand mysqld networkmanager ntpdate ntpd @foldingathome bluetooth mysqld net-auro-wireless)
DAEMONS=(syslog-ng network netfs crond hal gpm net-auto-wired)
root /home/djszapi # root /home/djszapi # cat /etc/network.d/ethernet-n900
CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using the N900 gadget'
INTERFACE='usb0'
IP='static'
ADDR='192.168.1.14'
POST_UP="iptables -A POSTROUTING -t nat -s 192.168.2.15/32 -j MASQUERADE && echo 1 > /proc/sys/net/ipv4/ip_forward"
POST_DOWN="iptables -D POSTROUTING -t nat -s 192.168.2.15/32 -j MASQUERADE && echo 0 > /proc/sys/net/ipv4/ip_forward "
root /home/djszapi #
eth0 Link encap:Ethernet HWaddr 00:1F:D0:9C:43:CA
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fe9c:43ca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24898 errors:0 dropped:0 overruns:0 frame:0
TX packets:20592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32329107 (30.8 Mb) TX bytes:1887901 (1.8 Mb)
Interrupt:40 Base address:0xc000
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:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:900 (900.0 b) TX bytes:900 (900.0 b)
usb0 Link encap:Ethernet HWaddr 7E:24:52:92:D2:37
inet addr:192.168.2.14 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::7c24:52ff:fe92:d237/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:693 errors:0 dropped:0 overruns:0 frame:0
TX packets:991 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:69675 (68.0 Kb) TX bytes:549905 (537.0 Kb)
usbpn0 Link encap:UNSPEC HWaddr 1B-00-00-FF-FF-00-00-00-00-00-00-00-00-00-00-00
UP POINTOPOINT RUNNING NOARP MTU:65541 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:3
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Edit: Actually I have tried with /etc/network.d/interfaces/usb0 POST_UP/DOWN scripts according to the wiki page after reading it once again, but same result
Last edited by djszapi (2011-03-06 19:33:04)
Offline
Run netcfg in debug mode and see what it tells you. POST_UP works fine here, and I think what you're looking for is PRE_DOWN....
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Pages: 1