Sponsored Content
Full Discussion: Routing issue - local vs LAN
Top Forums UNIX for Dummies Questions & Answers Routing issue - local vs LAN Post 302603985 by Corona688 on Friday 2nd of March 2012 01:11:45 PM
Old 03-02-2012
Don't enter or alter any gateways or other routing information.

No routing whatsoever is needed to talk over a point-to-point link, or over the local subnet -- routing and gateways only get involved for things beyond the local network.

All that's needed for two computers connected loopback to ping each other, for instance, is:

Code:
# on host 1
ifconfig eth0 up
ifconfig eth0 192.168.0.100 netmask 255.255.255.0


# on host 2
ifconfig eth0 up
ifconfig eth0 192.168.0.101 netmask 255.255.255.0

The OS will automatically pick the right interface for local traffic based on IP address and subnet mask.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Routing between two LAN

Here's the problem. I got one network with a internett connection (2mbit). In this network there's 5 computers connected together with a hub. The other network is also with 5 computers. I'm just wondering if I could connect these networks together. But the one network should not get access to the... (1 Reply)
Discussion started by: Dark_Duck
1 Replies

2. AIX

AIX Routing Issue

Hello, I've moved to a new network with multiple AIX box's. Most of them are working fine and dandy. On one box I need to set up a static route to a gateway.. no problem right? Whenever I add the route it appears in the routing table as UGc and then begins adding new entries to the... (1 Reply)
Discussion started by: joshstar14
1 Replies

3. IP Networking

IP - Routing issue?

I have an IP routing issue or I am just to stupid to work it out myself. I have setup am old PC running SUSE Linux 11.3 as a router, the system has 3 Interfaces connecting 3 networks. Interface 1 = 10.164.2.161/21 Interface 2 = 192.168.1.210/24 Interface 3 = 30.1.0.11/16 The default... (6 Replies)
Discussion started by: hogola
6 Replies

4. Solaris

Lan Issue

Hi Mates, I have one problem connecting a solaris machine to winxp machine. Setup:- Solaris 10 OS Virtual machine - on VMWARE (Ip Address:- 192.168.10.3). WINXP SP2 is the base os. (Ip Address:- 192.168.10.2). Bothe machines are connected using a bridge networking VMnet1. When i ping... (1 Reply)
Discussion started by: satyajeet.kadam
1 Replies

5. IP Networking

Need help with a routing issue.

I have run into a wall troubleshooting a Centos 5 networking issue. Hoping someone can assist. I've got a box with two vlans trunked over bond0 bond0 Link encap:Ethernet HWaddr 00:22:64:C1:D6:60 inet6 addr: fe80::222:64ff:fec1:d660/64 Scope:Link ... (0 Replies)
Discussion started by: creedog
0 Replies

6. IP Networking

Ubuntu LAN connectivity issue

System: Dell Desktop w/ 2 SATA drives running Ubuntu 9.10 that uses 2 ethernet cards, 1 for internet connectivity and another to interface the machine with a high voltage power supply which supports ssh and EPICS controls. Second Ethernet card is connected to a NetGear WNR3500 router, the VME... (0 Replies)
Discussion started by: henslewm
0 Replies

7. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

8. IP Networking

Routing traffic problem between 3G and Office Lan Network

Hi, I would like to ask some networking solution regarding my work LAN and 3G usb network problem. I want to route my internet traffic to the 3G network and sometimes connect to some of my work network for ssh to configure some workstation or print something. Currently my problem is i can't... (0 Replies)
Discussion started by: jao_madn
0 Replies

9. Solaris

Routing Issue

we are not able to ping client server (falcon-ebr.sbms.bsc.com) from netbackup master server (135.179.96.122 tsprd-ebr.edc.single.net) However from client server we are able to ping the master Server. Please assist on this (1 Reply)
Discussion started by: Rahul466
1 Replies

10. Cybersecurity

iptables Local Lan Issues

I recently installed Centos 6 and is my SOHO firewall/router. The small network is layout like such: |--eth0(WAN) Centos 6(firewall/router) |---eth1(LAN) | Switch | | LAN(192.168.3.0/27) | | PCs ----Laptops---Printer... (8 Replies)
Discussion started by: metallica1973
8 Replies
tgt-setup-lun(8)					      System Manager's Manual						  tgt-setup-lun(8)

NAME
tgt-setup-lun - creates a target, adds a device to the target and defines initiators that can connect to the target SYNOPSIS
tgt-setup-lun -d device -n target_name [initiator_IP1 initiator_IP2 ...] [-h] DESCRIPTION
Starts tgtd if necessary and creates a target according to the supplied target_name. The format of the target name is as follows: iqn.2001-04.com.<hostname>-<target_name> The target name must be unique. The script then adds the requested device to the target. If specific IP addresses are defined, it adds them to the list of allowed initia- tors for that target. If no IP addresses is defined, it defines that the target accepts any initiator. EXAMPLES
Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81: tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81 and 192.168.10.82: tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 192.168.10.82 Create a target that uses /dev/sdb1 and allows connections from any initiator: tgt-setup-lun -d /dev/sdb1 -n my_target Display help: tgt-setup-lun -h AUTHOR
Written by Erez Zilber REPORTING BUGS
Report bugs to <erezz@voltaire.com>. COPYRIGHT
Copyright (C) Voltaire Ltd. 2008. tgt-setup-lun(8)
All times are GMT -4. The time now is 01:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy