You are not logged in.
Pages: 1
i have
router with DSL line in and one LAN port
box with archlinux and 2 netcards (pikachu)
box with archlinux and netcard (charisma)
currently both boxes are connected (one at a time) with eth0 to router and set up with eth0="dhcp" and network-deamon
i want it to provide dhcp (like a router) on eth1 of pikachu for charisma
i tried to install dnsmasq as in this guide http://wiki.archlinux.org/index.php/Sha … _interface (dnsmasq only without any of the other stuff)
pikachu dnsmasq.conf
interface=eth1
dhcp-range=10.0.0.1,10.0.0.100,255.0.0.0,1h
domain-needed
bogus-priv
pikachu rc.conf
eth1="eth1 10.0.0.101 netmask 255.0.0.0 broadcast 10.0.0.255"
eth0="dhcp"
INTERFACES=(eht0 eth1)
DEAMONS=(@network @netfs @dnsmasq)
charisma rc.conf
eth0="dhcp"
INTERFACES=(eht0)
DEAMONS=(@network @netfs)
pikachu can surf the inet
charisma is connected to eth1 of pikachu with X-cable. it gets IP and can see and ping pikachu but cannot surf inet
(when i open browser on charisma then ACT light flashes once on both netcards in pikachu and then page is 'loading' forever)
questions
1 why doesnt it work now ?
2 i dont use a firewall on the boxes - just keep services and deamons to minimum. whats all that warning and security stuff in the howtos ? do i need it ? i just want the boxes to be protected by absence of unneeded services and not by firewall. i dont need pikachu to provide any protection for charisma and dont need to protect the boxes from each other
3 is there something wrong with running dnsmasq as root ?
4 i want to make both cards on pikachu to work equally - ie whatever way i plug the cables in they work. how to configure that ?
Offline
you could also try to bridge eth0 and eth1 of pikachu and let your router play dhcp/dns/whatsoever
root@pikachu:
# install the package
pacman -S bridge-utils
# unset ip adress of your interfaces so the bridge can handle it
ifconfig eth0 0.0.0.0 promisc up
ifconfig eth1 0.0.0.0 promisc up
# create the bridge
brctl addbr br0
# add interfaces to the bridge
brctl addif br0 eth0
brctl addif br0 eth1
# get IP adress from dhcp server (router)
dhcpcd br0
## OR configure ip adress
# ifconfig br0 10.0.0.101 netmask 255.0.0.0
# route add default gw <routers ip>
set charisma to dhcp
if it works put the above code to your rc.local
edit: typo in pikachus rc.conf ( e h t 0 ?)
edit2: this will also eliminate 4. (it wont matter which cable you put where)
edit3: check this thread on how to put the bridge to your rc.conf and if you experience problems with dhcp: http://bbs.archlinux.org/viewtopic.php?id=41311
Last edited by robmaloy (2008-11-17 14:26:22)
☃ Snowman ☃
Offline
thanks
that works !
but for some reason i need to run
dhcpcd -k br0
dhcpcd br0
on pikahu for it to surf (charisma can surf as soon as pikachu boots)
Offline
on your original post it looks like you have a typo under interfaces you have eht0 instead of eth0 in both rc.confs.
Offline
the typo is allready fixed and still stuff does not work
another question
i did what robmaloy suggested and i'd be happy with it if not performance
hardware of pikachu is
pentium 4 1.7 GHz
512 M ram
2x PCI realtek 8139
and its performance sometimes is more like pentium 2
can this be caused by network traffic (max ~1 MB/s) from charisma in normal conditions ?
does this mean there is some problem with pikachu ?
Last edited by 11010010110 (2008-11-20 18:29:33)
Offline
Pages: 1