LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2010, 01:10 PM   #1
toredo
Member
 
Registered: Feb 2009
Posts: 83

Rep: Reputation: 25
Netzwork "bridges"


Hello,

i have a device, which has an ethernet port, a wireless-acccess-point and a ppp-connection. over the ppp i can access the internet.

my wireless-interface has the ip 192.168.37.1/24. i have a dhcp-server, which gives my wireless-clients ip-addresses. the guys, which are connected over the wireless, internally access the ppp-interface to use the internet.

so the most things are ok. but the people, which come over ethernet have a problem: it don't works. for ethernet i use the static ip 192.168.37.2.

i wanna this:
the router only should have only one ip. this is 192.168.37.1. the dhcp-server should give all users ip's (this works). and all users can connect to the internet.

but if i give same adapters the same ip, the system doesn't work correctly. what have i to do? how can i give both adapters the same ip?

sorry for my english,

best regards
toredo
 
Old 11-07-2010, 03:21 PM   #2
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
Hi,
I am not quiet sure what you want to do by having two Network Interfaces at the same IP.

-Reliability, bandwidth?
The thing you might be looking for is called "bonding".
See here:
http://ubuntulinuxhelp.com/how-to-us...your-computer/

If that is not what you want give more details about the problem.
How many interfaces does your device (PC, router ...?) have?
How are your systems connected?
The DHCP Server is on that "device"?
Why do you want this device just have one IP?
 
Old 11-08-2010, 08:27 AM   #3
toredo
Member
 
Registered: Feb 2009
Posts: 83

Original Poster
Rep: Reputation: 25
ok, here are my interfaces:

Code:
eth0      Link encap:Ethernet  HWaddr a6:11:44:77:f0:0f
          inet6 addr: fe80::a411:44ff:fe77:f00f/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:3 dropped:0 overruns:0 frame:0
          TX packets:3 errors:3 dropped:0 overruns:0 carrier:3
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:238 (238.0 B)
          Interrupt:21 Base address:0x4000

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:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1184 (1.1 KiB)  TX bytes:1184 (1.1 KiB)

mon.wlan0 Link encap:UNSPEC  HWaddr 00-26-5A-0A-94-A6-02-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:34 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:2256 (2.2 KiB)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.114.171.245  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:124 (124.0 B)  TX bytes:148 (148.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:26:5a:0a:94:a6
          inet addr:192.168.37.1  Bcast:192.168.37.255  Mask:255.255.255.0
          inet6 addr: fe80::226:5aff:fe0a:94a6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9970 (9.7 KiB)  TX bytes:15931 (15.5 KiB)

wmaster0  Link encap:UNSPEC  HWaddr 00-26-5A-0A-94-A6-02-00-00-00-00-00-00-00-00-00
          UP RUNNING  MTU:0  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)
eth0: Ethernet (actualy i get an ip with dhcp)
lo: loopback
mon.wlan0, wlan0, wmaster0: These are wireless interfaces. I don't do something with them. i only defined a static ip for wlan0 (for the wireless-router). with this interfaces i create a wireless network (with hostapd).
ppp0: my interface to the internet (umts-modem)

i use some code to make it possible to route the traffic:
Code:
...
iptables -F
iptables -X
# here i would like to define that ppp0 can't open connections from outside. but this is another problem
...
# Define the routing (ok, i copied the code)
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
...
# Allow ip-forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
...
i wanna make with this a normally wireless-router. a normal wireless-router has only one ip (like 192.168.1.1). but if i give eth0 the ip 192.168.37.1 it doesn't work. ok, i think it's stupid to give two interfaces the same ip. can i make one interface "transparent"?

best regards toredo
 
Old 11-08-2010, 03:46 PM   #4
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
OK
that sounds like a job for a network bridge.
See:
http://www.linux.com/archive/articles/55617

or google for network bridge
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration