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


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    ---.---.---.---    m0    ---.---.---.---    m1        ---.---.---.---    m0       m0       m0       m0       m0       m0       m0       m0

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

and       m0

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


ps: It is actually an exercise. I try to share the track on dropbox.

please see the ex. number 2


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 dev optdmz 
  default via dev dmz  metric 10 
  default via 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 (if you have that program) will show which route is selected. See for information on round-robin routes.


Table with AngularJS using different jsons

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=""></script> <script type="text/javascript" src="script.js"></script> </head> <body ng-controller="myCtrl" ng-init="init()"> <table border=1> <thead> <tr>...

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

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...

Dynamically populating List View from Website XML data Android

In my home screen (Main Activity) I have a List View, named lv. I have a separate method, created in 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...

fill an html table by column instead of row?

'<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...

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

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...

Form inside javascript not working

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

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...

Formatting long-form survey data in R

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...

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

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 - Parallelising a function

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...

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

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":...

Joining tables and LEFT JOIN as new Columns in tsql

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...

SWT - show multiple table items

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...

virtualbox - connect from one vm to another

In one VM, I have a Win XP machine that has a service listening on 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....

Awk Script to process data from a trace file

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...

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

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...

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

How can I make my table resizable like a textarea element and not individual rows/columns? I seem to be fundamentally missing something simple. <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>...

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

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...

Excel- update table with another table based on cell value

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...

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

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?...

TCP Window Update Scenarios

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...

How to reduce 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?

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 =...

Show and hide column in a table using drop down

I have a table, which looks exactly like this one: 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...

for-loop add columns using SQL in MS Access

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...

Retaining original table formatting after a 'pagebreak'

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...

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

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...

Python Networking

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...

Php Mysql: Retrieving 2 usernames via 2 user id

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...

How can I render this irregular table with 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...

Event on dynamically created checkbox

I started to programming with, 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...

Host Only connection NetBSD to Windows

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 do I display my mysql table column headers in my php/html output?

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...

Multiple Json response to html Table format

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...

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

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...

How to differentiate a QNetworkReply is aborted or not?

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?...

UDP and TCP always use same IP for one client?

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...

filtering firstname and lastname using datatable.js

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...

C# Protobuf .NET Using Preexisting Byte Array

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...

Taking cell values in a 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

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

How would I achieve this table layout?

Table goes max height when screen is resized

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...

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

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...

How to parse table of numbers in C++

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...

MySQL 4 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...

Break table in two lines

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%; } } ...

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

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 ...

Purpose of Pseudo/Colon Header Fields

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...

Convert table HTML to JSON

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 but it doesn't work for the headings in every row :( EDIT:

salt mine for all network interfaces

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...