Sponsored Content
Special Forums IP Networking Discussion at work, would a router work pluging a cable in wan1 and lan1? Post 302909956 by broli on Monday 21st of July 2014 02:00:41 PM
Old 07-21-2014
Lightbulb Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view

situation

a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual with lan ports)
a cable connecting wan1 to lan1
a pc in lan2 (normal setup) to be able to monitor

would the router assign an ip to himself?

my personal opinion is yes, and not only that, it could be possible to ping from pc in lan2 to the wan1 ip

we dont have a spare working hardware to test this
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Will this work?

I'm trying to check if files already exist in a directory. They have the same basename (exsyctr1), but 4 different extensions. If the files exist, then I make backups of them, then copy them from another directory ($livecomp/data) to the current one ($copycomp/data). If they don't exist, just... (5 Replies)
Discussion started by: Ypnos
5 Replies

2. UNIX for Advanced & Expert Users

how does this work???

can someone tell me the meaning of this commnad, If you want to see a grand total of CPU time for a program when it finishes running, you can use the time command. At the Unix prompt, enter: time java myprog Replace myprog with the name of the program you are running. The following is an... (1 Reply)
Discussion started by: ldpathak
1 Replies

3. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

4. UNIX for Dummies Questions & Answers

cant get this to work

whoami | grep < $1 | echo $1 trying to write a script that finds out who the user is and then takes occurences of that username from a file that is passed as an argument and then displays it (6 Replies)
Discussion started by: iago
6 Replies

5. Linux

How does it work?

Can anyone explain how Graphic LCD (CSTN / STN) work in Unix... From Graphic file thro driver code to display....? Thanks (1 Reply)
Discussion started by: nat123
1 Replies

6. Linux

Come and work for me! (UK)

********nothing too see here!!!****** (2 Replies)
Discussion started by: TonyChapman
2 Replies

7. UNIX for Dummies Questions & Answers

Remote Unix printing to my WinXP works with no router. How can I make it work through my router?

I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies

8. IP Networking

My router has UPnP, as do its work with ubuntu to automatically open ports

My router has UPnP,how to make it work with ubuntu to automatically open ports I try to open the following command " /sbin/iptables -I INPUT -d 0/0 -s 0/0 -p tcp --dport 21 -j ACCEPT" ,local only opens ,if i put the ip 192.168.1.68, it works correctly, if i`m put my external ip does not work,I... (9 Replies)
Discussion started by: dhalus
9 Replies

9. IP Networking

NIC will not work, but it did work.

I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
Discussion started by: NC user
0 Replies

10. Shell Programming and Scripting

My script work on Linux but not work in sunos.

My script work on Linux but not work in sun os. my script. logFiles="sentLog1.log sentLog2.log" intial_time="0 0" logLocation="/usr/local/tomcat/logs/" sleepTime=600 failMessage=":: $(tput bold)Log not update$(tput rmso) = " successMessage="OK" arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
ndp(1M) 																   ndp(1M)

NAME
ndp - IPv6 Neighbor Discovery cache display and control SYNOPSIS
host interface] interface] interval interface] host interface] interface] interface] interface host hw_addr filename DESCRIPTION
The command displays and modifies the IPv6 Neighbor Discovery cache as specified in the IPv6 Neighbor Discovery (ND) protocol. Options recognizes the following options and arguments: host Display the current Neighbor Discovery cache entries for the host specified by host, which is either a name present in the hostname database (see hosts(4)), or an IPv6 address expressed in colon notation (see inet6(3N)). Select the Neighbor Discovery cache entries for the specified interface. There is no distinction between primary and secondary interfaces. Therefore, specifying is the same as speci- fying Display host addresses in IPv6 colon notation. If this option is not specified, attempts to display host addresses symbolically first, and falls back to displaying the host addresses in IPv6 colon notation if that failed. Display all Neighbor Discovery cache entries. Continuously display all Neighbor Discovery cache entries, updated at each interval, measured in seconds. Deletes Neighbor Discovery cache entries with IP addresses that are not associated with local interfaces for the host specified by host. Flushes all Neighbor Discovery cache entries with IP addresses that are not associated with local interfaces. These are entries with the (local) flag set. Refer to the section of this manpage for information about flags. (Quiet) Do not write anything to standard output. This option only applies to and options. Display the prefix list in the Neighbor Discovery cache table. The prefix list defines a set of IP address ranges that the host can reach. The prefix flags are for on-link, and for au- tonomous. The on-link flag indicates that addresses with that prefix can be reached directly without going through a router. The autonomous flag indicates that the prefix came from stateless autoconfiguration. Flushes all autoconfigured addresses learned from prefixes advertised by the Router Advertisement Messages. Create a Neighbor Discovery cache entry for the interface specified by interface, the host specified by host, and the hardware address (link-layer address) specified by hw_addr. The hw_addr is specified as where each x is a hexadecimal digit. If is specified, the entry is published, which means that this system will respond to Neighbor Solicitation for the speci- fied "host" even though the host address is not its own. If is specified, it means that the published entry refers to an anycast address. This parameter can only be specified when the parameter is specified. Create Neighbor Discovery cache entries from the specifications found in the file specified by filename. Each entry in this file specifies the interface, host, hw_addr, and optionally the flag. For example, the content of this file can be: The use of and options requires root privileges. Contents A Neighbor Discovery cache entry includes the following fields: o host (neighbor's host name or IP address) o hardware address (link layer address) of host o interface name o state o flags The state of an entry can be or o An entry is in an state if address resolution is in progress and the hardware address of the neighbor has not been determined. o An entry is in a state if the neighbor is known to have been reachable recently. o An entry is in a state if the neighbor is no longer known to be reachable. However, no attempt has been made to verify its reachability because no traffic has been sent to this neighbor. o An entry is in a state if the neighbor is no longer known to be reachable, and traffic has recently been sent to the neighbor. o An entry is in a state if the neighbor is no longer known to be reachable, and unicast Neighbor Solicitation probes have been sent to verify reachability. The flags can be (Deprecated), (Local), (Published), (Temporary), (Auto), or (anycast). A deprecated address can be used for receiving packets, but it should not be used for sending packets because its validity is expected to expire soon. The local flag indicates that this Neighbor Discovery cache entry corresponds to an interface on this host. The published flag indicates that the host will respond to Neigh- bor Solicitations on this IPv6 address. The temporary flag indicates that the address has a randomly generated interface identifier which changes over time. The autonomous flag indicates that the prefix for the address came from stateless address autoconfiguration. The any- cast flag indicates that the address is an anycast address. DIAGNOSTICS
returns a non-zero value to indicate errors. A zero return value indicates success. EXAMPLES
The following output shows the local interfaces and the IP addresses assigned to them. Name Mtu Address/Prefix Ipkts Opkts lan1 1500 fe80::210:83ff:fef7:3a21/10 982 759 lan1:1 1500 fec0::9:210:83ff:fef7:3a21/64 0 0 lan3 1500 fe80::210:83ff:fef7:7a9d/10 0 0 lo0 4136 ::1/128 57 57 To display the entire Neighbor Discovery cache: Destination Physical Address Interface State Flags fe80::202:fdff:fe36:8720 0:2:fd:36:87:20 lan1 STALE - fec0::9:210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1:1 REACHABLE LP fe80::210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1 REACHABLE LP fe80::210:83ff:fef7:7a9d 0:10:83:f7:7a:9d lan3 REACHABLE LP To show Neighbor Discovery cache entries for a host: Destination Physical Address Interface State Flags fe80::210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1 REACHABLE LP To show Neighbor Discovery cache entries for an interface: Destination Physical Address Interface State Flags fe80::210:83ff:fef7:7a9d 0:10:83:f7:7a:9d lan3 REACHABLE LP To delete a Neighbor Discovery cache entries for a host and an interface: fe80::202:fdff:fe36:8720 (fe80::202:fdff:fe36:8720) deleted. To show the prefix list: Prefix List Interface Valid Preferred Flags Entries Lifetime Lifetime fec0:0:0:9::/64 lan1 167 107 A fe80::/10 lan1 inf inf LA fe80::/10 lan3 inf inf LA To add an entry in the Neighbor Discovery cache: nodeb (2001::1) added. Destination Physical Address Interface State Flags fe80::210:83ff:fef7:7a9d 0:10:83:f7:7a:9d lan3 REACHABLE LP 2001::1 0:1:2:3:4:5 lan3 - - To flush all remote entries: nodea (fe80::202:fdff:fe36:8720) flushed. nodeb (2001::1) flushed. AUTHOR
was developed by HP. SEE ALSO
hosts(4), inet6(3N), ndp(7P). Neighbor Discovery for IP Version 6 (IPv6), RFC2461, Narten, Nordmark, Simpson. IPv6 Stateless Address Autoconfiguration, RFC2462, Thomson, Narten. ndp(1M)
All times are GMT -4. The time now is 07:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy