Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Thu Jan 18, 2018 12:50 pm


News News of TCP/IP Networking

Site map of TCP/IP Networking » Forum : TCP/IP Networking

Internet Protocol, Transport Control Protocol, Network protocols, Routing, Routers, IP aliases, Routes, Ethernet

 [ Total topics 58 Go to page 1, 2, 3, 4, 5, 6

Message
 Post subject: FreeBSD list interface multicast group membership
PostPosted: Tue Dec 03, 2013 9:02 am 
In a previous thread, I used "iperf" command to join a multicast group on FreeBSD command line.

To actually see the status of the group, use "ifmcstat". Quote:
Quote:
NAME
ifmcstat -- dump multicast group management statistics per interface

SYNOPSIS
ifmcstat


DESCRIPTION
The ifmcstat command dumps multicast group information from the kernel.

The following options are supported:

-i interface
specifies the interface to be displayed. ...

Read more : FreeBSD list interface multicast group membership | Views : 1856 | Replies : 0

Top
 Post subject: VMware ESX 3.5 and ESX/ESXi 4.x: Increasing MTU on vSwitch to accept Jumbo frames
PostPosted: Thu Nov 21, 2013 11:28 am 
Vmware SX 3.5 and ESX/ESXi 4.x increase the vswitch MTU to accept Jumbo frames


Login as root via ssh (needs to be enabled) at vmware esxi shell and type following command:
Code:
esxcfg-vswitch -m 9000 vSwitch4

Above command will increase the MTU to 9000 for vSwitch4. This way, your VMs (given that the vm interface MTU was also increased accordingly) will be able to send and receive Jumbo frames.


Reference: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007654

Read more : VMware ESX 3.5 and ESX/ESXi 4.x: Increasing MTU on vSwitch to accept Jumbo frames | Views : 575 | Replies : 0

Top
 Post subject: FreeBSD show network interface statistics
PostPosted: Wed Sep 25, 2013 9:30 am 
# sysctl dev.em.0
dev.em.0.%desc: Intel(R) PRO/1000 Legacy Network Connection 1.0.4
dev.em.0.%driver: em
dev.em.0.%location: slot=0 function=0 handle=\_SB_.PCI0.P2P0.S1F0
dev.em.0.%pnpinfo: vendor=0x8086 device=0x100f subvendor=0x15ad subdevice=0x0750 class=0x020000
dev.em.0.%parent: pci2
dev.em.0.nvm: -1
dev.em.0.rx_int_delay: 0
dev.em.0.tx_int_delay: 66
dev.em.0.rx_abs_int_delay: 66
dev.em.0.tx_abs_int_delay: 66
dev.em.0.rx_processing_limit: 100
dev.em.0.flow_control: 3
dev.em.0.mbuf_alloc_fail: 0
dev.em.0.cluster_alloc_fail: 0
dev.em.0.dropped: 0
dev.em.0.tx_dma_fail: 0
dev.em.0.tx_desc_fail1: 0
dev.em.0.tx_desc_fail2: 35
dev.em.0.rx_overruns: 0
dev.em.0.watchdog_timeouts: 0
dev.em.0.device_control: 1086325321
dev.em.0.rx_control: 32770
dev.em.0.fc_high_water: 47104
dev.em.0.fc_low_water: 45604
dev.em.0.fifo_workaround: 0
dev.em.0.fifo_reset: 0
dev.em.0.txd_head: 104
dev.em.0.txd_tail: 109
dev.em.0.rxd_head: 234
dev.em.0.rxd_tail: 233
dev.em.0.mac_stats.excess_coll: ...

Read more : FreeBSD show network interface statistics | Views : 2667 | Replies : 0

Top
 Post subject: FreeBSD - multiple routing tables
PostPosted: Wed Aug 28, 2013 8:40 am 
To enable multiple routing tables in FreeBSD, kernel needs recompiled with the number of routing table it should host. Following kernel option needs to be added to kernel file:
Code:
options         ROUTETABLES=4


So 4 routing tables in my case. To verify number of routing tables supported by FreeBSD kernel, use sysctl:
Code:
# sysctl net.fibs
net.fibs: 4


Let's look at other FIB (should be called read) related sysctls:
Code:
net.my_fibnum: 0
net.add_addr_allfibs: 0
net.fibs: 4


From FreeBSD manual: ...

Read more : FreeBSD - multiple routing tables | Views : 5562 | Replies : 0

Top
 Post subject: Linux adding and removing vlan tagged interfaces
PostPosted: Wed Aug 28, 2013 8:19 am 
In order to arrange vlan interfaces in Linux, some distros (base CentOS) need the vconfig utility:
Code:
# rpm -qa | grep vconfig
vconfig-1.9-3



Adding vlan interface in Linux:
Code:
# vconfig add eth1 10
Added VLAN with VID == 10 to IF -:eth1:-
# ip a l eth1.10
14: eth1.10@eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
    link/ether 00:0c:29:5a:13:77 brd ff:ff:ff:ff:ff:ff

# ip a add 192.168.10.2/24 dev eth1.10
# ifconfig eth1.10 up
## ip a l eth1.10
14: ...

Read more : Linux adding and removing vlan tagged interfaces | Views : 21082 | Replies : 0

Top
 Post subject: FreeBSD - Adding VLAN Tagged subinterface using ifconfig
PostPosted: Mon Aug 19, 2013 10:44 am 
Here's how to add a tagged vlan interface in FreeBSD all versions.

Step 1: create the vlan subinterface:
Code:
# ifconfig vlan122 create


Step 2: assign it a vlan ID and vlan device:
Code:
# ifconfig vlan122 vlan 122 vlandev em0


Step 3: check the vlan subinterface:
Code:
# ifconfig vlan122
vlan122: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:07:e9:a5:9b:fa
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
        vlan: 122 parent interface: em0

You will notice that interface status is ...

Read more : FreeBSD - Adding VLAN Tagged subinterface using ifconfig | Views : 7847 | Replies : 0

Top
 Post subject: FreeBSD + IPERF sending IGMP v2 multicast group join / leave via specific interface
PostPosted: Mon Jul 22, 2013 10:41 am 
FreeBSD + IPERF sending IGMP v2 multicast group join / leave via specific interface

Before I start. The route for the multicast group is obvious default route:
Code:
# route get 239.1.1.1
   route to: 239.1.1.1
destination: default
       mask: default
    gateway: apollo-vl10.ivorde.ro
  interface: vlan10
      flags: <UP,GATEWAY,DONE,STATIC>
recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
       0         0         0         0         0         0      1500         0

Let's say I need to send igmp group report/join out the "vlan120" interface:
# ...

Read more : FreeBSD + IPERF sending IGMP v2 multicast group join / leave via specific interface | Views : 3712 | Replies : 0

Top
 Post subject: FreeBSD + IPerf send multicast source traffic via specific interface
PostPosted: Mon Jul 22, 2013 10:26 am 
When generating multicast traffic under FreeBSD, Iperf will send all the traffic via the interface for the default route, even though "-B" switch is used to bind to the source IP of a different interface.

In this senario, I have two interfaces: vlan10 and vlan120. Default route goes out via vlan10 interface, but I need to send multicast traffic out the vlan120 interface.
[root@thor ~]# route get default
route to: default
destination: default
mask: default ...

Read more : FreeBSD + IPerf send multicast source traffic via specific interface | Views : 2843 | Replies : 3

Top
 Post subject: Linux list the outgoing interface for packets to a specific IP destination
PostPosted: Mon Jul 22, 2013 10:17 am 
To be able to get the outgoing interface for traffic to a specific destination, the iproute package needs to be installed:
Code:
# dpkg -S `which ip`
iproute: /sbin/ip


Use "apt-get install iproute" or "yum install iproute" command for Debian/Ubuntu and Centos/RHEL/Fedora (assuming correct repositories are enabled).

# ip ro get help
Usage: ip route { list | flush } SELECTOR
ip route get ADDRESS [ from ADDRESS iif STRING ]
[ oif STRING ] [ ...

Read more : Linux list the outgoing interface for packets to a specific IP destination | Views : 1179 | Replies : 0

Top
 Post subject: FreeBSD list the outgoing interface for packets to a specific IP destination
PostPosted: Mon Jul 22, 2013 10:12 am 
Man route quote:
Quote:
# man route
ROUTE(8) FreeBSD System Manager's Manual ROUTE(8)

NAME
route -- manually manipulate the routing tables

SYNOPSIS
route command [ args]

DESCRIPTION
The route utility is used to manually manipulate the network routing
tables. It normally is not needed, as a system routing table management
daemon, such as routed(8), should tend to this task.

The route utility supports a limited number of general options, but a
rich command language, enabling ...

Read more : FreeBSD list the outgoing interface for packets to a specific IP destination | Views : 912 | Replies : 0

Top
 [ Total topics 58 Go to page 1, 2, 3, 4, 5, 6


Last 10 active topics


Routing and dynamic routing protocols

No new posts BGP question
View the latest post

BSD Operating Systems

No new posts BGP question
View the latest post

TCP/IP Networking

No new posts IP Subnetting Raneg Assigning...?
View the latest post
No new posts TCP receive window size doesnt change
View the latest post
No new posts TCP Ack Flooding
View the latest post

Migrating the world to IPv6

No new posts Junos IPv6 static route with local-link next-hop
View the latest post
No new posts Linux IPv6 interface and route commands
View the latest post

TCPdump & Wireshark tips & tricks

No new posts tshark: CLI command to read ip/tcp headers
View the latest post

Security, NAT, Policies, Screen, Flow, TCP

No new posts Juniper SRX NAT64 static-nat inet impacts non-nat IPv4 traffic
View the latest post
No new posts Juniper SRX NAT64 behavior in relation to DF (Don’t Fragment) bit on incoming IPv4 packets
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 614 | Total topics 984 | Total members 1192



News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO