table,networking,routing,ip , two lines with the same number of address destinnazione in ROUTING TABLE


two lines with the same number of address destinnazione in ROUTING TABLE

Question:

Tag: table,networking,routing,ip

I am studing a particular case in routing table. As the title i have this table for a particular router in a net:

destin.IP       Mask             NextHop            Interface
193.14.5.160    255.255.255.0    ---.---.---.---    m0
193.14.5.192    255.255.255.0    ---.---.---.---    m1
111.0.0.0       255.0.0.0        ---.---.---.---    m0
192.16.7.0      255.255.255.0    111.15.17.32       m0
194.17.21.0     255.255.255.0    111.20.18.14       m0
194.17.21.16    255.255.255.0    111.20.18.14       m0
192.16.7.0      255.255.255.0    111.20.18.14       m0
194.17.21.0     255.255.255.0    111.15.17.32       m0
194.17.21.16    255.255.255.0    111.15.17.32       m0
0.0.0.0         0.0.0.0          111.30.31.18       m0

In that table there are lines with the same IP address like

192.16.7.0      255.255.255.0    111.15.17.32       m0

and

192.16.7.0      255.255.255.0    111.20.18.14       m0

in this case which of the two lines is chosen for routing? Why?

Thanks!

ps: It is actually an exercise. I try to share the track on dropbox. https://www.dropbox.com/s/s1w3h0e7wp4eyb6/PSR-Esercitazione-Integrativa.pdf?dl=0

please see the ex. number 2


Answer:

It depends on your OS/kernel/options. Some round-robin, some take the first (or last) found, etc.

However, there is also critical information missing from your routing table, probably. Most systems also have a weight or metric on routes which can prioritize one route over the other.

The output of ip route on my system shows

  default via 168.13.96.1 dev optdmz 
  default via 166.14.88.1 dev dmz  metric 10 
  default via 168.13.96.1 dev optdmz  metric 20 

The metric shows which route will be chosen out of "three" options (though one is duplicated). Lowest number wins.

Running ip route get 192.16.7.5 (if you have that program) will show which route is selected. See https://serverfault.com/questions/372504/round-robin-default-gateways-on-linux for information on round-robin routes.


Related:


Event on dynamically created checkbox asp.net


c#,jquery,asp.net,table,checkbox
I started to programming with asp.net, I have a table with some checkboxses. The problem is, I can't create static tables, because this action is linked with some parameters. Anyway.. When I click on the First checkbox I want to invert the other checkboxes in this table. How can i...

How do I display my mysql table column headers in my php/html output?


php,html,mysql,table,data
2 Questions... Scenario: I would like to query my database table via a form and then display the results that occur(if there are results) and my current situation is that it does work but it clears the form completely and leaves my to an empty page with just the results...

Php Mysql: Retrieving 2 usernames via 2 user id


php,mysql,table,join
Hi all i have one problem that i cant solve. I am doing pair generator for tournament. I have two tables. The first table contains the usernames and userids. The second table contains match_id, round, user1_id, user2_id Table 1 user_id username 21 John 22 Peter 23 Ana 24 Dan Table...

Break table in two lines


css,table
How to break the table td in two lines using media-querie? jsfiddle @media only screen and (max-width : 768px) { .table > tbody > tr > td { width: 100%; max-width: 100%; } } ...

Awk Script to process data from a trace file


table,awk,rows,trace
I have a table (.tr file) with different rows (events). **Event** **Time** **PacketLength** PacketId sent 1 100 1 dropped 2 100 1 sent 3 100 2 sent 4.5 100 3 dropped 5 100 2 sent 6 100 4 sent 7 100 5 sent 8 100 6 sent 10 100 7...

Form inside javascript not working


javascript,forms,table
I am using javascript to show a sort of menu box with clickable links but I changed my mind and want to use links as forms now. <script type="text/javascript"> $('.mouseon-examples div').data('powertipjq', $( [ '<table class="tabulkajazyku"><form id="myformen" action="member" method="POST"><input type="hidden" name="jazyk" value="en"><tr><td><a class="odkaz_cerveny odkaz_cerveny_block" href="#" id="mylinken"><img src="/images/flag_en.jpg" class="vlajky"><div...

auditing opened/closed ports on Linux


linux,networking,port
Is there an auditing tool to check which and when ports are opened and closed on Linux? My goal is to run my application and check its ports usage. lsof or netstat don't fit because they just tell me which ports are currently opened, and looping on such command won't...

Why doesn't table resize work here? jsfiddle url inserted


jquery,html,table,jquery-ui-resizable
How can I make my table resizable like a textarea element and not individual rows/columns? I seem to be fundamentally missing something simple. https://jsfiddle.net/o0Ldf0us/ <table id="example"> <thead> <tr> <th>Heading1</th> <th>Heading2</th> <th>Heading3</th> </tr> </thead> <tbody> <tr> <td>Data1.1</td> <td>Data1.2</td> <td>Data1.3</td> </tr> <tr> <td>Data2.1</td> <td>Data2.2</td>...

salt mine for all network interfaces


networking,salt-stack,collectd
I'm having difficulty configuring collectd.conf using the interface plugin through salt. The collectd.conf expects a list of network interfaces to monitor like: <Plugin interface> Interface "em1" Interface "em2" </Plugin> I've worked out that I need to use a salt mine to pull the grains into the master - which is...

Table with AngularJS using different jsons


javascript,angularjs,table
I am new with AngularJS and I've created a table to show information from two different JSONs. To do that, I "mixed" them to get one. My code: test.html <!doctype html> <html ng-app="App"> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.min.js"></script> <script type="text/javascript" src="script.js"></script> </head> <body ng-controller="myCtrl" ng-init="init()"> <table border=1> <thead> <tr>...

How to parse table of numbers in C++


c++,parsing,table,numbers
I need to parse a table of numbers formatted as ascii text. There are 36 space delimited signed integers per line of text and about 3000 lines in the file. The input file is generated by me in Matlab so I could modify the format. On the other hand, I...

How can I render this irregular table with ng-repeat?


html,angularjs,table,angularjs-ng-repeat,ng-repeat
Here I have a json data as below: [ {"teacher":"Tom","student":[{"name":"stuA","project":"projectA"},{"name":"stuB","project":"projectB"}]}, {"teacher":"Jerry","student":[{"name":"stuC","project":"projectC"},{"name":"stuD","project":"projectD"},{"name":"stuE","project":"projectE"}]}, {"teacher":"Lee","student":[{"name":"stuF","project":"projectF"}]} ] And now I wanna render it into an irregular table like the picture: So how can I make it possible by using ng-repeat?It's really a confusing problem. here is the html code that makes the table...

virtualbox - connect from one vm to another


networking,virtualbox
In one VM, I have a Win XP machine that has a service listening on 0.0.0.0:10000 I can connect from the Win XP to this service, but I have another VM (CentOS) that I would like to connect. When I try to connect from my CentOS, it says connection refused....

How to reduce table border thickness?


table,border,thickness
I am drawing one table with border=1 but it looks quite prominent as i am enclosing one image inside it so i want to make it thinner for better look and feel. <table border=1 cellpadding=50 cellspacing=0><tr><td></td></tr></table> How can i reduce border thickness? ...

How to show mysql multi row / mysql_fetch_array results in a table?


php,mysql,arrays,table,while-loop
I am trying to show mysql_fetch_array() results in a table. I want to show guests name,their country and their agreed time who are traveling on a same date. Following code works fine. The code fetches the row values and prints it. $select_guests = mysql_query('SELECT name FROM van_sharing WHERE date =...

UDP and TCP always use same IP for one client?


python,sockets,networking,tcp,udp
I've made a server (python, twisted) for my online game. Started with TCP, then later added constant updates with UDP (saw a big speed improvement). But now, I need to connect each UDP socket client with each TCP client. I'm doing this by having each client first connect to the...

MySQL 4 Table Join


mysql,table,join
I've been trying to get the proper data for this 4-table join for awhile and I can't seem to pin it down. I'm trying to grab a list of ids from songs based on who I am following in follows, and show the song id if my followers are the...

Purpose of Pseudo/Colon Header Fields


http,networking,http-headers,protocols,http2
As the title suggests, I'm looking for some information on the purpose of pseudo/colon header fields, i.e. I want to know why we have a second type of header field... Also - I know pseudo/colon header fields are used in http2 in place of the message and status lines (^^^the...

SWT - show multiple table items


java,table,swt,tableviewer
Could anybody help me? I have a table in SWT and simply I want to show some table items but the table only shows one item and the others with vertical scroll. I want to show everything, without scrolling. I tried with the option SWT_NO_SCROLL but is not working. I...

Dynamically populating List View from Website XML data Android


java,android,xml,eclipse,networking
In my home screen (Main Activity) I have a List View, named lv. I have a separate method, created in MainActivity.java which returns an List of Strings which derived from parsed XML data. See below: public static List<String> getLocs(){ List<String> sts = new ArrayList<String>(); try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory...

for-loop add columns using SQL in MS Access


sql,ms-access,table,for-loop,iteration
I am trying to add n columns to a table, like in this example of code where n = 10: Sub toto() Dim db As Database, i As Integer Set db = CurrentDb() For i = 1 To i = 10 db.Execute " ALTER TABLE time_series " _ & "ADD...

Excel- update table with another table based on cell value


excel,table,copy,cell
after searching, I understand I can copy data into a table one at a time using VLOOKUP. However, is it possible to replace an entire table with another if a cell contains a certain value? for example, I have a table1. I want to replace table1 with table2 if cell...

Python Networking


python,networking,client,server
So I have create a socket and am using the function socket.bind() and keep on getting the following error: Only one usage of each socket address (protocol/network address/port) is normally permitted Here is my code: import socket s = socket.socket() host = socket.gethostname() port = 12345 s.bind((host, port)) s.listen(5) while...

How to differentiate a QNetworkReply is aborted or not?


c++,qt,networking
I have the following code: connect(&netMgr, SIGNAL(finished(QNetworkReply*)), this, SLOT(loadFinished(QNetworkReply*)), Qt::UniqueConnection); reply = netMgr.get(qheader); How could I tell whether the loadFinished(); slot is triggered by calling reply->abort() or not?...

Retaining original table formatting after a 'pagebreak'


excel,excel-vba,table,formatting,page-break
So here's the finished product, a statement of accounts with a working statement table, and an ageing analysis: Everything works great. It basically populates itself row by row with data from another table. Here is the sample code: j = 21 'First row on the statement of accounts workbook For...

Convert table HTML to JSON


javascript,html,json,table
I have this: <table> <tr> <th>Name:</th> <td>Carlos</td> </tr> <tr> <th>Age:</th> <td>22</td> </tr> </table> And I need a json format. {"Name":"Carlos","Age": 22} I've tried with https://github.com/lightswitch05/table-to-json but it doesn't work for the headings in every row :( EDIT: http://jsfiddle.net/Crw2C/773/...

Show and hide column in a table using drop down


javascript,jquery,html,table,drop-down-menu
I have a table, which looks exactly like this one: https://www.datatables.net/examples/api/show_hide.html I now want to replace the headers (the th things) with a drop down. I want to hide and show columns thanks to those drop downs (they can click and show what they want). I was also wandering if...

How to get a mysql query to use a specific index?


mysql,database,table,indexing
SELECT * FROM orders WITH (INDEX(idx)); When i fired above query i got the error mysql #1064 - You have an error in your SQL syntax I have created index as below create index idx on orders(date,status); Can anybody tell me the correct syntax?...

Table goes max height when screen is resized


javascript,html,css,ajax,table
I have a table that is generated with a min-height of 300px and a max-heigh of 650px which is perfect. The only problem is when i resize the window the table will stretch all the way down until all its values are shown. Its supposed to have a scroll bar...

I need help displaying an Xml file with php in table form


php,xml,table,attributes
So all-knowing community, once more I seek your help. I have been working on something for the past few days and it is starting to drive me insane. I need to grab the contents of an xml file and display it in a table. Since it has various levels I...

Communicating between a PC and UR5 Universal Robotics Robot Arm using TCP/IP LabVIEW


sockets,networking,tcp,labview,robotics
I have a UR5 Universal Robotics Robot Arm and PC connected via ethernet that I am attempting to have talk to each other via LabVIEW (just send strings back and forth). I have already managed to read communication from the robot to the PC using the TCP Listen VI and...

Refreshing SQL view after adding a default constraint to one of its tables


sql,table,view,refresh
How exactly can I refresh the view after adding a default constraint to one of the tables that makes up the view? I tried to use the sp_refreshview stored procedure but that didn't actually update the view. Here is the code I wrote to update one of columns with a...

C# Protobuf .NET Using Preexisting Byte Array


c#,networking,serialization,protobuf-net,objectpool
So I am working with Protobufs in .NET and I am trying to incorporate them with a buffer pool and AsyncSocketEventArgs pool. The buffer pool assigns sections of a huge byte array to the event args. So, the problem, I can't figure out a way to have Protobufs serialize directly...

HTML Table with 2 (two) rows set beside a 4 (four) row set


html,table
How would I achieve this table layout?

Taking cell values in a table


javascript,jquery,html,table
I want to take some of the cell values in a table . How to take All at a strech. Can i assign a class name to those cells and take the values for each of them

How to Click All Inputs with the Same Class on Page Load


javascript,jquery,table,input,click
I have a table with multiple rows (hundreds) on my web page. Each table row has an input with the class name of act_inv. I am trying to get JavaScript/JQuery to click each input with the class name of act_inv. Is this possible? And if so, how may I do...

Displaying table columns below of each other for small displays (responsive layout)


html,css,table,responsive-design
I have a table with two columns: ------------- | A | B | ------------- I the browser width is too small for this layout, it should switch to this layout: ------------- | A | ------------- | B | ------------- I got this to work with fixed column width and "float:left":...

fill an html table by column instead of row?


html,css,table
'<table> <tr> <th>' .$varProduct[$x][0]. '</th>'. //this is a title '<th>' .$varProduct[$x][2] . $varProduct[$x][11] . ' </th> // this is a price </tr> </table>' this code makes a table that fills out like this Title Price Title Price Title Price but I want to fill it Title Title Title Price Price...

Host Only connection NetBSD to Windows


networking,virtualization,netbsd
I have NetBSD-4.0.1-x68k installed as a guest virtual machine on Windows (using the XM6i 68030 emulator for windows 7). I am trying to setup a host only connection on the NetBSD guest. However, I can't ping the guest from the host unless I run: tcpdump -i ne0 #executed on guest...

How to insert data into sql server database when the primary key column already set default identity(1, 1)


c#,table,insert
I'm trying to insert two data columns into my SQL Server database but I get an error at the code line -> cmd.ExecuteNonQuery(); Cannot insert the value NULL into column OrderID, table RestaurantApp.dbo.Junc_Order; column does not allow nulls. INSERT fails. The OrderID column is actually the primary key in my...

Multiple Json response to html Table format


php,mysql,json,table,response
I want to fetch data from different servers Database and i need to shown in one Centralised server. So i have written a SELECT query in different locations and i am trying to fetch in one Centralised Server. I am getting a JSON Array response. But i tried displaying it...

PL/SQL: Join between two tables error [on hold]


sql,table,join,plsql
I have got a task in which I have to display information from two different tables using a cursor. I tried doing it with an example we did before, but it doesn't seem to work! Below mentioned are the two tables that I have to take records from and display...

How do I print a list of strings into a table in python? [on hold]


python,string,list,table,printing
This is the list tableData = [['apples', 'oranges', 'cherries', 'banana'], ['Alice', 'Bob', 'Carol', 'David'], ['dogs', 'cats', 'moose', 'goose']] This is how I want it to look like apples Alice dogs oranges Bob cats cherries Carol moose banana David goose ...

Joining tables and LEFT JOIN as new Columns in tsql


sql,sql-server,tsql,table,row
In this sample I have two tables containing data for my Customer and Products that a office supply shop has. which is seen below: The Above tables primarily functions to supply the required data for the third table which is the Orders table Using the orders table, I can get...

TCP Window Update Scenarios


networking,tcp,webserver
In our application, we are using apache tomcat webserver running in 8081. It receives POST message from Client at 16:42:06.87 IST timeframe. It acknowledges by ACK packet with window size of 62356 bytes after 200ms. After some seconds (3-5 seconds), it also sends similar ACK packet but as a "TCP...

filtering firstname and lastname using datatable.js


javascript,jquery,table,datatable,filtering
I have created a application with dataTable for filtering firstname and lastname, I am having a firstname and lastname text-field through which I would filter firstname and lastname. The filtering is working but the issue is that firstname and lastname filtering is doing from both the textfield, Actually I need...

For each `pop` get frequencies of the elements of `id`


r,table,data.table
Consider this data: m = data.frame(pop=c(1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4), id=c(0,1,1,1,1,1,0,2,1,1,1,2,1,2,2,2)) > m pop id 1 1 0 2 1 1 3 1 1 4 1 1 5 2 1 6 2 1 7 2 0 8 2 2 9 2 1 10 3 1 11 3 1 12 3 2 13 3 1...

c - Parallelising a function


c,multithreading,table,rainbowtable
I'm trying to implement parallelism to this function I want it to take as many threads as possible, and write the results to a file. The results need to be written in the file in the incrementing order so the first result needs to be written first the second second...

Bridging ethernet traffic between two interfaces (USB-CDC ECM and Ethernet) using an mbed LPC1768


linux,networking,embedded,wireshark,ethernet
I'm working on a project where I have a LPC1768 MBED device. I can connect this device by USB with the computer. The device itself has a working outgoing Ethernet connection which I can read using the MBED library. On the embedded device, internet traffic enters with the USB-CDC ECM...

Formatting long-form survey data in R


r,table,formatting,reshape,long-form
We asked 3 people two or three yes-no questions. Let me denote these 3 people by 101,102,103 the questions by "A", "B","C" and the responses by 0, 1. The result is q<-data.frame(response=c(0,0,1,0,0,1,1), qstn=c("A","B","A","B","A","B","C"), person=c(101,101,102,102,103,103,103)) We need to convert this table to the following format person|qustionA|questionB|questionC 101 | 0 | 0...