LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2008, 11:10 PM   #1
yashwanth
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
how to add a route to other network ?


Hi all,

I have say two bridges on my machine,bridge br1 is on one network with ips 10.0.xx.xx and bridge br2 has an ip 192.168.xx.xx ,if i mount an ethernet card eth1 on br2.how can eth1 communicate with devices on br1?

do we need to add some additional route to system?


regards,
yashwanth
 
Old 11-26-2008, 12:12 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
if your machine is directly connected to both network then it should already have a route to them..

what does the output of route -n look like ?


man route for information on manually adding routes to your system.
 
Old 11-26-2008, 12:19 AM   #3
yashwanth
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your reply..

here are the ifconfig,brctl ,route -n details of my machine:

[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1A:A0:70:4E:0C
inet addr:172.25.148.25 Bcast:172.25.149.255 Mask:255.255.254.0
inet6 addr: fe80::21a:a0ff:fe70:4e0c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:320576 errors:0 dropped:0 overruns:0 frame:0
TX packets:9513 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:49265623 (46.9 MiB) TX bytes:1690207 (1.6 MiB)
Memory:fe9e0000-fea00000

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

ovirtbr0 Link encap:Ethernet HWaddr DA:69:CC:7D:8B:32
inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0
inet6 addr: fe80::d869:ccff:fe7d:8b32/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:5957 (5.8 KiB)

virbr0 Link encap:Ethernet HWaddr D2:40:64:77:5E:AC
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::d040:64ff:fe77:5eac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:6065 (5.9 KiB)

[root@localhost ~]# brctl show
bridge name bridge id STP enabled interfaces
ovirtbr0 8000.000000000000 no
pan0 8000.000000000000 no
virbr0 8000.000000000000 yes
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 ovirtbr0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
172.25.148.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
0.0.0.0 172.25.148.1 0.0.0.0 UG 0 0 0 eth0

if eth1 is an ethernet card mounted on bridge ovirtbr0,then will that be able to ping eth0 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
noob: ip route add vs route add jCash Linux - Networking 1 07-19-2007 12:12 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
unable to add default route (network unreachable) beebop Linux - Networking 12 05-30-2005 12:07 PM
Network route add file David@330 Linux - Networking 4 05-26-2005 08:38 AM
add a static route in Network init files Ghitza Linux - Networking 1 11-19-2004 06:26 AM


All times are GMT -5. The time now is 12:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration