Sponsored Content
Full Discussion: how to get hwaddr?
Operating Systems Linux how to get hwaddr? Post 302174067 by HPAVC on Monday 10th of March 2008 12:26:59 AM
Old 03-10-2008
Quote:
Originally Posted by invinzin21
i lost my file ifcfg-eth1, i want ot configure it again.
but i do not know how to get my hwaddr,
suppose to be you can see it when you type ifconfig eth1,
but i did not configure my eth1. How to get it in some way?
in your /etc/network/interfaces you coulde
Code:
iface eth0 inet static
        address 192.168.0.1
        network 192.168.0.0
        netmask 255.255.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

quick and revert later
 
Match-all classifier in tc(8)                                          Linux                                         Match-all classifier in tc(8)

NAME
matchall - traffic control filter that matches every packet SYNOPSIS
tc filter ... matchall [ skip_sw | skip_hw ] [ action ACTION_SPEC ] [ classid CLASSID ] DESCRIPTION
The matchall filter allows to classify every packet that flows on the port and run a action on it. 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. skip_sw Do not process filter by software. If hardware has no offload support for this filter, or TC offload is not enabled for the inter- face, operation will fail. skip_hw Do not process filter by hardware. EXAMPLES
To create ingress mirroring from port eth1 to port eth2: tc qdisc add dev eth1 handle ffff: ingress tc filter add dev eth1 parent ffff: matchall skip_sw action mirred egress mirror dev eth2 The first command creats an ingress qdisc with handle ffff: on device eth1 where the second command attaches a matchall filters on it that mirrors the packets to device eth2. To create egress mirroring from port eth1 to port eth2: tc qdisc add dev eth1 handle 1: root prio tc filter add dev eth1 parent 1: matchall skip_sw action mirred egress mirror dev eth2 The first command creats an egress qdisc with handle 1: that replaces the root qdisc on device eth1 where the second command attaches a matchall filters on it that mirrors the packets to device eth2. To sample one of every 100 packets flowing into interface eth0 to psample group 12: tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: matchall action sample rate 100 group 12 SEE ALSO
tc(8), iproute2 21 Oct 2015 Match-all classifier in tc(8)
All times are GMT -4. The time now is 07:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy