Sponsored Content
Special Forums IP Networking Route all traffic between two ethernet interfaces Post 302466821 by DGPickett on Wednesday 27th of October 2010 11:37:55 AM
Old 10-27-2010
I have used the arp commands to make something like a route, saying a particular host's mac supports an IP, and when the packets get there, a route there, or another arp lie, can get it delivered. I forget why we did not use a manual route! Maybe we wanted the routing protocol to think it decided everything!

FTP is a sub-protocol of TCP. TCP is one of 512 sub-protocols of IP, along with ICMP (ping and such) and UDP. IP is encapulated in Ethernet. Or more pragmatically, each layer has its own header. So if FTP s routing, TCP is routing. Routing is an IP level activity.

Last edited by DGPickett; 10-27-2010 at 01:03 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

interfaces

Hello, which network interface i must sellect during the solaris9 installation le0 or hme0 ? this system is part of the network, it is a standalone system and is not on any domain. thanks for your help, em (1 Reply)
Discussion started by: emsakopa
1 Replies

2. UNIX for Dummies Questions & Answers

NTP idle ports and ethernet interfaces

I did a netstat -an and saw that ntp was listening on 4 UDP ports for each interface. Is this insecure because they are UDP ports and I don't see them in a listen state, is that because they are just a client. Thank you. *.ntp Idle... (2 Replies)
Discussion started by: csross
2 Replies

3. Solaris

Zones and interfaces

Hello, can someone please suggest if is possible to use different net interfaces for non global zones ? for example , bash-3.00# uname -srv SunOS 5.10 Generic_137137-09 bash-3.00# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 ... (6 Replies)
Discussion started by: tonijel
6 Replies

4. UNIX for Dummies Questions & Answers

/etc/network/interfaces

i need a one liner command that writes in /var/log/net.log the date when i connect to the network and when i disconect ..i know that i need to write somethin in /etc/network/interfaces but idk what ! please help (1 Reply)
Discussion started by: g0dlik3
1 Replies

5. UNIX Desktop Questions & Answers

Could you explain these Interfaces????

Hi friends, I am abit confused regarding these interfaces, hope you could clearify everything, and differentiate between them, with examples? 1. Graphical User Interface(GUI) 2. Text User Interface(TUI) 3. Character User Interface(CUI) 4. Commandline Interface(CLI) 5. Text-based User... (1 Reply)
Discussion started by: gabam
1 Replies

6. AIX

vio server ethernet to vio client ethernet(concepts confusing)

Hi In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID. Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies

7. Solaris

Interfaces and Virtual-interfaces queries

Hi Al, In course of understanding networking in Solaris, I have these doubts on Interfaces. Please clarify me. I have done fair research in this site and others but could not be clarified. 1. In the "ifconfig -a" command, I see many interfaces and their configurations. But I see many... (1 Reply)
Discussion started by: satish51392111
1 Replies

8. Solaris

can't see other interfaces

Hi Guys, I have a Netra240 server with four interfaces. However, when I ran this command dladm show-dev it showed only one interface bge0. Can someone please explain to me how to fix this problem? Thanks guys. (1 Reply)
Discussion started by: cjashu
1 Replies

9. UNIX for Dummies Questions & Answers

Solaris Logic to transmit traffic to physical interfaces ( eg ce0 and ce1)

Just wanted to understand what is the logic being used by Solaris(kernel) to transmit data/traffic on physical interfaces. I have seen most of the time traffic is being sent to interface ce0 and sometime to ce1. I have removed ip address from below command for some reason. netstat -rn ... (3 Replies)
Discussion started by: nadeemahmed
3 Replies

10. AIX

How to re-route traffic from one port to another?

Hi Friends, How to do port forwarding in AIX? We would like to re route traffic from port A to port B on AIX LPAR. for example: my application is using 8080 port on LPAR and would like to use the 8081 instead of 8080. By default application was configured with 8080. But instead of changing... (2 Replies)
Discussion started by: System Admin 77
2 Replies
DNET(8) 						    BSD System Manager's Manual 						   DNET(8)

NAME
dumbnet -- dumb networking library test program SYNOPSIS
dumbnet command args [...] DESCRIPTION
dumbnet is a simple test program for the dumbnet(3) library. It can be used to compose and transmit network datagrams as a Unix-style filter (e.g. reading from or writing to files and pipes) or modify the local system network configuration (including the ARP cache, firewall rule- set, network interfaces, and routing table). Payload generation commands addr address [...] Convert the address (specified as a hostname, IP address, or MAC address) into its binary representation on standard output. hex string [...] Convert the C-style escaped string (shellcode, for instance) into its binary representation on standard output. rand len Write len random bytes to standard output. Packet encapsulation commands eth [type type] [src mac] [dst mac] Prepend the data read from standard input with an Ethernet header on standard output. The Ethernet type may be specified as 'arp', 'ip', or as a hex, octal, or decimal number. arp [op op] [sha mac] [spa host] [tha mac] [tpa host] Prepend the data read from standard input with an ARP header on standard output. The ARP op may be specified as 'req', 'rep', 'revreq', 'revrep', or as a hex, octal, or decimal number. ip [tos num] [id num] [off offset] [ttl num] [proto protocol] [src host] [dst dst] Prepend the data read from standard input with an IP header on standard output. The fragmentation offset may be specified as a decimal number (optionally concatenated with '+' to indicate more fragments) or as a hex number. The protocol may be specified by name, or as a hex, octal, or decimal number. icmp [type num] [code num] Prepend the data read from standard input with an ICMP header on standard output. tcp [sport port] [dport port] [flags flags] [seq num] [ack num] [win num] [urp num] Prepend the data read from standard input with a TCP header on standard output. A port may be specified by name or hex, octal, or deci- mal number. The TCP flags may be specified as some combination of the characters in the set 'SAFRPU' or as a hex number. udp [sport port] [dport port] Prepend the data read from standard input with a UDP header on standard output. A port may be specified by name or hex, octal, or deci- mal number. Packet transmission commands send [device] Read a packet from standard input and send it over the network. If no device is specified, the packet is assumed to be an IP datagram and routed to its destination. Otherwise, the packet is assumed to be an Ethernet frame and is transmitted on the specified interface. Kernel interface commands arp show Display the kernel ARP cache. arp get host Display the kernel ARP entry for host. arp add host mac Add an ARP entry mapping the mac address for host. arp delete host Delete the ARP entry for host. fw show Display the kernel firewall ruleset. fw add|delete action direction device protocol src[:port[-max]] dst[:port[-max]] [type[/code]] Add a rule to or delete a rule from the active firewall ruleset. The action must be either 'allow' or 'block'. The direction must be either 'in' or 'out'. The device may specify an interface name, or 'any'. The protocol may be specified by name, or as a decimal num- ber. For TCP and UDP protocols, a port (or range, if specified with a max value) may be specified in decimal and appended to the source and/or destination address. For ICMP, a type (and optional code) may be specified in decimal. intf show Display the configuration of all network interfaces. intf get device Display the configuration for the interface specified by device. intf set device [alias host] [dst host] [inet host] [link mac] [up|down] [arp|noarp] Configure the interface specified by device. route show Display the kernel routing table. route get dst Display the route for the destination dst, specified as a hostname, IP address, or network prefix in CIDR notation. route add dst gw Add a route for the destination dst through the gateway gw. route delete dst Delete the route for the destination dst. EXAMPLES
Send a UDP datagram containing random shellcode: dumbnet hex "xebx1fx5ex89x76x08x31xc0x88x46x07x89" "x46x0cxb0x0bx89xf3x8dx4ex08x8dx56x0cxcdx80" "x31xdbx89xd8x40xcdx80xe8xdcxffxffxff/bin/sh" | dumbnet udp sport 555 dport 666 | dumbnet ip proto udp src 1.2.3.4 dst 5.6.7.8 | dumbnet send Save an ARP request in a file and send it twice: dumbnet arp op req sha 0:d:e:a:d:0 spa 10.0.0.3 tpa 10.0.0.4 | dumbnet eth type arp src 0:d:e:a:d:0 dst ff:ff:ff:ff:ff:ff > arp.pkt dumbnet send fxp0 < arp.pkt dumbnet send fxp0 < arp.pkt Send a fragmented ping packet: # Create ping packet with IP header, to set ICMP checksum echo "monkey monkey monkey monkey" | dumbnet icmp type 8 code 0 | dumbnet ip proto icmp src 1.2.3.4 dst 5.6.7.8 > ping.pkt # Chop off IP header dd if=ping.pkt of=ping.data bs=20 skip=1 # Fragment IP payload split -b 24 ping.data p. # Send fragments dumbnet ip id 1 off 0+ proto icmp src 1.2.3.4 dst 5.6.7.8 < p.aa | dumbnet send dumbnet ip id 1 off 24 proto icmp src 1.2.3.4 dst 5.6.7.8 < p.ab | dumbnet send COMPATIBILITY
The library was originally named dnet but was renamed to dumbnet due to a conflict with the DECnet library. This decision affects not only the filename of the shared library, but also the header file names and the library's SONAME tag, which means that software built on a non- Debian-derived distribution will not run with this library and recompiling the software will only work if some adjustments to header include directives and compiler/linker flags are made. SEE ALSO
dumbnet(3) AUTHORS
Dug Song <dugsong@monkey.org> BSD
October 17, 2001 BSD
All times are GMT -4. The time now is 02:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy