Get Specific Route Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get Specific Route Configuration
Change History
| Four-segment version of the iBMC software | Revision Date | Description | Revised By |
|---|---|---|---|
| 3.19.13.43 | 2026/07/15 | Added the first draft. | Li Zhenning wx1056695 |
Basic Information
Function Description
Obtains the configuration of a specific route.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID |
| 4 | Sub Command: subcommand, 98h |
| 5 | Interface: network port, 00h: Mgmt, 01h: GE1, 02h: GE2 |
| 6 | IP Version: IP protocol version. 00h: IPv4; 01h: IPv6 |
| 7 | ip route table index: indicates the index of a route configuration item. Each network port and each IP protocol have five route configuration items. The value ranges from 0 to 4. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID |
| 5 | Interface, network port, 00h: Mgmt, 01h: GE1, 02h: GE2 |
| 6 | IP version: 00h - ipv4, 01h - ipv6 |
| 7 | Sequence number of a route configuration item. |
| 8:23 | Dest address: indicates the destination IP address. If the IPv4 protocol is used, use the last four bytes in hexadecimal format. If the IPv6 protocol is used, use all the 16 bytes and enter the IPv6 address in hexadecimal format. The address must be the same as the mask or prefix. That is, all host bits are 0. MSB First |
| 24 | Mask/Prefix: indicates the subnet mask/prefix length. If the IPv4 protocol is used, enter the prefix length value converted from the subnet mask based on the CIDR rule. For example, 255.255.254.0 corresponds to /23. If the IPv6 protocol is used, enter the prefix length. |
| 25-40 | Dest gateway: gateway address. The rule is the same as that of the IP address. |
| 41 | Status: enabled status. 00h: disabled; 01h: enabled. |
Command Example
Obtain the route configuration of GE1's IPv6 address with index 0.
Request:
bash
ipmicmd -k "0f 00 30 93 db 07 00 98 01 01 00" smi 00Response:
text
db 07 00 0x01 0x01 0x00 0xfe 0x80 0x00 0x00 0x00 0x00 0x00 0x00 0x9e 0x7d 0xa3 0xff 0xfe 0x28 0x6f 0xfa 0x40 0xfe 0x80 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x01