Sponsored Content
Full Discussion: virtual interface
Top Forums Shell Programming and Scripting virtual interface Post 302293547 by otheus on Tuesday 3rd of March 2009 09:36:58 AM
Old 03-03-2009
the "old" way is to do this:
Code:
ifconfig eth0:1 192.168.10.2 netmask 255.255.255.0

The "new" way is with the "rproute" toolset:
Code:
ip addr add 192.168.10.2/24 dev eth0

Got it?
 

10 More Discussions You Might Find Interesting

1. HP-UX

HP-UX - how to create virtual interface

OS - HP-UX B.10.20 A 9000/777 Anyone know how to set up a virtual interface on HP-UX? I've looked quickly through docs.hp.com and searched this site. No luck. And my HP Guru is sleeping today. (4 Replies)
Discussion started by: thehoghunter
4 Replies

2. HP-UX

Adding virtual Interface on HP UX

Hello all, I want to add a new virtual interface on HP-UX B.11.11 U 9000/800 box. I know that ifconfig can be used to add the Virtual interface. BUt i do not know the exact syntax. it some times gives plumb error if i try to add # ifconfig vif0 10.1.10.1 up plumb error: No such file... (3 Replies)
Discussion started by: supersumanth
3 Replies

3. HP-UX

Traceroute on virtual interface

Hello all, I have configured a virtual interface using ifconfig on HP UX 11.11. When i try to do traceroute with -i option i get * * * from traceroute. i use $traceroute -i lan0:1 my-gateway traceroute to my-gateway (15.70.180.1), 30 hops max, 40 byte packets 1 * * * 2 * * * 30 * *... (2 Replies)
Discussion started by: supersumanth
2 Replies

4. IP Networking

Solaris Virtual Interface Problem in DHCP

Hi all, I am experiencing a problem with dhcp broadcast packages. these broadcast packages are seen on bge1 and bge1:1 interfaces but somehow they are not seen at bge771001 interface which is second virtual interface on the bge1 interface. I have a server on which I configured it as working... (2 Replies)
Discussion started by: ironoxide
2 Replies

5. IP Networking

assign mac address for virtual interface eth1:0

Hi , by default the physical interface (eth1) and virtual interface eth1:0 will be having same mac address, is there any way we can assign separate mac addresses for both the interfaces. would some one help me out in this. Thanks Gopi (1 Reply)
Discussion started by: Gopi Krishna P
1 Replies

6. AIX

Virtual interface on AIX

Hi, I am totally new to AIX. I would like to know how to create virtual interface on AIX machine. Thanks, Pooja (4 Replies)
Discussion started by: pooja84k
4 Replies

7. UNIX for Dummies Questions & Answers

Creating a virtual Interface to recieve snmp traps

All, I have a question regarding setting up a virtual interface to recieve snmp traps from network devices. My Solaris 10 server is running the HPOV-NNMi application. The network devices in our environment (many thousands) are all pre-configured to send their snmp traps to a specific IP... (4 Replies)
Discussion started by: turk22
4 Replies

8. IP Networking

Splitting eth0 traffic into two virtual interface

Hello everybody, I have been reading many posts about this topic but I have no figure out how to solve it. I need to split the traffic incoming on eth0 on two other interfaces (for instance one receiving on port 80 and the others on the other interface). I cannot understand how to do that.... (2 Replies)
Discussion started by: nicandro
2 Replies

9. IP Networking

How to route all incoming packets from one virtual interface?

Hello, I'm trying to route all packets arriving at a particular interface by entering the same interface the virtual interface eth1: 2 and now everything is routed by default gw configured on eth1. eth1 Link encap:Ethernet HWaddr 0a:0e:64:18:52:72 inet addr:192.168.10.15 eth1:2 ... (1 Reply)
Discussion started by: faka
1 Replies

10. AIX

LPAR missing virtual interface

Note: Newbie to IBM virtualization :-) Query: Created a new AIX7.1 lpar on a system with same config as one before however the new one is having issues going out to physical network. Now on comparison the only thing which differs between these two machines is an additional en1 and ent1 shown... (7 Replies)
Discussion started by: max
7 Replies
Route classifier in tc(8)                                              Linux                                             Route classifier in tc(8)

NAME
route - route traffic control filter SYNOPSIS
tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action ACTION_SPEC ] DESCRIPTION
Match packets based on routing table entries. This filter centers around the possibility to assign a realm to routing table entries. For any packet to be classified by this filter, a routing table lookup is performed and the returned realm is used to decide on whether the packet is a match or not. OPTIONS
action ACTION_SPEC Apply an action from the generic actions framework on matching packets. classid CLASSID Push matching packets into the class identified by CLASSID. from REALM fromif TAG Perform source route lookups. TAG is the name of an interface which must be present on the system at the time of tc invocation. to REALM Match if normal (i.e., destination) routing returns the given REALM. EXAMPLES
Consider the subnet 192.168.2.0/24 being attached to eth0: ip route add 192.168.2.0/24 dev eth0 realm 2 The following route filter will then match packets from that subnet: tc filter add ... route from 2 classid 1:2 and pass packets on to class 1:2. NOTES
Due to implementation details, realm values must be in a range from 0 to 255, inclusive. Alternatively, a verbose name defined in /etc/iproute2/rt_realms may be given instead. SEE ALSO
tc(8), ip-route(8) iproute2 21 Oct 2015 Route classifier in tc(8)
All times are GMT -4. The time now is 06:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy