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 |
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. |
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 ? |
All times are GMT -5. The time now is 08:03 AM. |